[Aikido] Fix 17 security issues in fast-xml-parser, fast-uri, aws-cdk-lib and 5 more - #41
Closed
aikido-autofix[bot] wants to merge 1 commit into
Closed
Conversation
Package lock diff2.4.1 -> 2.6.1 node_modules/@aws-cdk/asset-awscli-v1 2.2.242 -> 2.2.282 node_modules/@aws-cdk/asset-node-proxy-agent-v6 2.1.0 -> 2.1.2 node_modules/@aws-cdk/cloud-assembly-schema 45.2.0 -> 54.5.0 node_modules/@aws-cdk/cloud-assembly-schema/node_modules/jsonschema 1.4.1 -> 1.5.0 node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver 7.7.2 -> 7.8.4 node_modules/@aws-sdk/client-cognito-identity 3.840.0 -> 3.1075.0 node_modules/@aws-sdk/client-secrets-manager 3.840.0 -> 3.1075.0 node_modules/@aws-sdk/client-sso removed node_modules/@aws-sdk/core 3.840.0 -> 3.974.23 node_modules/@aws-sdk/credential-provider-cognito-identity 3.840.0 -> 3.972.48 node_modules/@aws-sdk/credential-provider-env 3.840.0 -> 3.972.49 node_modules/@aws-sdk/credential-provider-http 3.840.0 -> 3.972.51 node_modules/@aws-sdk/credential-provider-ini 3.840.0 -> 3.972.56 node_modules/@aws-sdk/credential-provider-node 3.840.0 -> 3.972.58 node_modules/@aws-sdk/credential-provider-process 3.840.0 -> 3.972.49 node_modules/@aws-sdk/credential-provider-sso 3.840.0 -> 3.972.55 node_modules/@aws-sdk/credential-provider-web-identity 3.840.0 -> 3.972.55 node_modules/@aws-sdk/credential-providers 3.840.0 -> 3.1075.0 node_modules/@aws-sdk/middleware-host-header removed node_modules/@aws-sdk/middleware-logger removed node_modules/@aws-sdk/middleware-recursion-detection removed node_modules/@aws-sdk/middleware-user-agent removed node_modules/@aws-sdk/nested-clients 3.840.0 -> 3.997.23 node_modules/@aws-sdk/region-config-resolver removed node_modules/@aws-sdk/token-providers 3.840.0 -> 3.1074.0 node_modules/@aws-sdk/types 3.840.0 -> 3.973.13 node_modules/@aws-sdk/util-endpoints removed node_modules/@aws-sdk/util-user-agent-browser removed node_modules/@aws-sdk/util-user-agent-node removed node_modules/@aws-sdk/xml-builder 3.821.0 -> 3.972.31 node_modules/@smithy/abort-controller removed node_modules/@smithy/config-resolver removed node_modules/@smithy/core 3.6.0 -> 3.26.0 node_modules/@smithy/credential-provider-imds 4.0.6 -> 4.4.2 node_modules/@smithy/fetch-http-handler 5.0.4 -> 5.5.2 node_modules/@smithy/hash-node removed node_modules/@smithy/invalid-dependency removed node_modules/@smithy/is-array-buffer removed node_modules/@smithy/middleware-content-length removed node_modules/@smithy/middleware-endpoint removed node_modules/@smithy/middleware-retry removed node_modules/@smithy/middleware-serde removed node_modules/@smithy/middleware-stack removed node_modules/@smithy/node-config-provider removed node_modules/@smithy/node-http-handler 4.0.6 -> 4.8.2 node_modules/@smithy/property-provider removed node_modules/@smithy/protocol-http removed node_modules/@smithy/querystring-builder removed node_modules/@smithy/querystring-parser removed node_modules/@smithy/service-error-classification removed node_modules/@smithy/shared-ini-file-loader removed node_modules/@smithy/signature-v4 5.1.2 -> 5.5.2 node_modules/@smithy/smithy-client removed node_modules/@smithy/types 4.3.1 -> 4.15.0 node_modules/@smithy/url-parser removed node_modules/@smithy/util-base64 removed node_modules/@smithy/util-body-length-browser removed node_modules/@smithy/util-body-length-node removed node_modules/@smithy/util-buffer-from removed node_modules/@smithy/util-config-provider removed node_modules/@smithy/util-defaults-mode-browser removed node_modules/@smithy/util-defaults-mode-node removed node_modules/@smithy/util-endpoints removed node_modules/@smithy/util-hex-encoding removed node_modules/@smithy/util-middleware removed node_modules/@smithy/util-retry removed node_modules/@smithy/util-stream removed node_modules/@smithy/util-uri-escape removed node_modules/@smithy/util-utf8 removed node_modules/@types/uuid removed node_modules/ajv 6.12.6 -> 6.15.0 node_modules/aws-cdk-lib 2.204.0 -> 2.260.0 node_modules/aws-cdk-lib/node_modules/ajv 8.17.1 -> 8.20.0 node_modules/aws-cdk-lib/node_modules/balanced-match 1.0.2 -> 4.0.4 node_modules/aws-cdk-lib/node_modules/brace-expansion 1.1.12 -> 5.0.6 node_modules/aws-cdk-lib/node_modules/concat-map removed node_modules/aws-cdk-lib/node_modules/fast-uri 3.0.6 -> 3.1.2 node_modules/aws-cdk-lib/node_modules/fs-extra 11.3.0 -> 11.3.5 node_modules/aws-cdk-lib/node_modules/jsonfile 6.1.0 -> 6.2.1 node_modules/aws-cdk-lib/node_modules/minimatch 3.1.2 -> 10.2.5 node_modules/aws-cdk-lib/node_modules/semver 7.7.2 -> 7.8.1 node_modules/aws-cdk-lib/node_modules/yaml 1.10.2 -> 1.10.3 node_modules/bowser 2.11.0 -> 2.14.1 node_modules/brace-expansion 1.1.12 -> 1.1.15 node_modules/constructs 10.4.2 -> 10.6.0 node_modules/fast-xml-parser removed node_modules/filelist/node_modules/brace-expansion 2.0.2 -> 2.1.1 node_modules/filelist/node_modules/minimatch 5.1.6 -> 5.1.9 node_modules/minimatch 3.1.2 -> 3.1.5 node_modules/strnum removed node_modules/uuid removed node_modules/@aws-crypto/crc32 added node_modules/@aws-sdk/credential-provider-login added node_modules/@aws-sdk/signature-v4-multi-region added node_modules/@aws/lambda-invoke-store added node_modules/aws-cdk-lib/node_modules/@aws-cdk/cloud-assembly-api added |
Author
|
Closed by Aikido: a new AutoFix has been created → #42 |
aikido-autofix
Bot
deleted the
fix/aikido-security-update-packages-58317088-xmxi
branch
July 2, 2026 23:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrade dependencies to fix critical XML entity injection XSS, XML entity expansion DoS attacks, stack overflow in XML builder, URI normalization bypass, and other security vulnerabilities.
✅ No breaking changes for: fast-xml-parser, fast-uri, yaml, @smithy/config-resolver
✅ 17 CVEs resolved by this upgrade, including 1 critical 🚨 CVE
This PR will resolve the following CVEs:
preserveOrder:truecauses stack overflow leading to denial of service when processing certain inputs. The application crashes due to improper recursion handling during XML construction.*()and+()) generate regexps with catastrophic backtracking, causing severe ReDoS denial-of-service attacks with minimal input patterns triggering multi-second hangs.🤖 Remediation details
Fix multiple critical/high/medium/low severity vulnerabilities in transitive and direct dependencies
Short summary
This PR remediates security vulnerabilities in eight npm packages:
fast-xml-parser,fast-uri,aws-cdk-lib,brace-expansion,yaml,minimatch,@smithy/config-resolver, andajv. Fixes are applied via two mechanisms: direct version spec bumps in the rootpackage.json(foraws-cdk-lib,@aws-sdk/client-secrets-manager, and@aws-sdk/credential-providers), and a lockfile-only transitive refresh vianpm update(forminimatch,brace-expansion, andajv). Thepackage-lock.jsonreflects all resolved version changes.fast-xml-parser
fast-xml-parserwas pulled in as a transitive dependency through@aws-sdk/core, which exact-pinned version4.4.1— below the patched floor of4.5.5. Because@aws-sdk/coreis not a direct dependency, the fix required bumping the direct dependencies@aws-sdk/client-secrets-managerand@aws-sdk/credential-providersfrom^3.348.0to^3.844.0inpackage.json, which resolves@aws-sdk/coreto3.844.0+and in turn pullsfast-xml-parserat5.2.5(satisfying>=4.5.5). After the bump,fast-xml-parserno longer appears as a separate lockfile entry because it is fully resolved through the updated SDK chain.fast-uri
fast-uriwas a transitive dependency nested underaws-cdk-lib → ajv, resolving to3.0.6— below the patched floor of3.1.1. Bumpingaws-cdk-libfrom^2.78.0to^2.246.0inpackage.jsoncaused the nestedajvto update to8.20.0, which in turn resolvedfast-urito3.1.2, satisfying all patched version requirements.aws-cdk-lib
aws-cdk-libitself is the vulnerable direct dependency for CVE-2026-11417, requiring a minimum of2.246.0. The declared spec inpackage.jsonwas widened from^2.78.0to^2.246.0, resolving to2.260.0in the lockfile. This single bump also transitively fixedfast-uri,yaml,minimatch(nested copy),brace-expansion(nested copy), andajv@8.x(nested copy) within theaws-cdk-libsubtree.brace-expansion
brace-expansionappeared in three lockfile locations. The copy nested underaws-cdk-libwas fixed by theaws-cdk-libparent bump (resolved to5.0.6). The root-hoisted copy (1.1.12, viaminimatch@3.x) and thefilelist-nested copy (2.0.2, viaminimatch@5.x) were both below their respective patched floors (1.1.14and2.0.3); these were resolved to1.1.15and2.1.1respectively vianpm update brace-expansion --package-lock-only, which is safe because all parentminimatchranges already permitted the patched versions.yaml
yamlwas nested insideaws-cdk-libwith an exact pin of1.10.2, below the patched version1.10.3. Bumpingaws-cdk-libto^2.246.0caused the newer release to pinyamlat1.10.3, satisfying the patched requirement without any additional lockfile manipulation.minimatch
minimatchappeared in three lockfile locations. Theaws-cdk-lib-nested copy was resolved to10.2.5as a side-effect of theaws-cdk-libparent bump. The root-hoisted copy (3.1.2, shared byeslint,glob, and others) and thefilelist-nested copy (5.1.6) were both below their patched floors (3.1.4and5.1.8); all declaring parents already used caret ranges permitting the fix, sonpm update minimatch --package-lock-onlywas sufficient to resolve them to3.1.5and5.1.9respectively.@smithy/config-resolver
@smithy/config-resolverwas a transitive dependency of@aws-sdk/client-secrets-managerand related SDK packages, pinned at4.1.4— below the patched floor of4.4.0. The parent packages already declared^4.1.4, meaning the fix was semver-compatible; bumping@aws-sdk/client-secrets-managerand@aws-sdk/credential-providersto^3.844.0inpackage.jsoncaused npm to resolve@smithy/config-resolverto a patched version, and the package no longer appears as a distinct lockfile entry in the updated tree.ajv
ajvappeared in two lockfile locations. Theaws-cdk-lib-nested copy (viatable) was resolved to8.20.0(satisfying>=8.18.0) as a side-effect of theaws-cdk-libparent bump. The root-hoisted6.xcopy (viaeslint) sat at6.12.6, below the patched floor of6.14.0; sinceeslint@8.57.1already declares^6.12.4, the fix was semver-compatible andnpm update ajv --package-lock-onlyresolved it to6.15.0.Version changes
@aws-sdk/client-secrets-manager^3.348.0(3.840.0)^3.844.0(3.1075.0)fast-xml-parserand@smithy/config-resolvertransitives@aws-sdk/credential-providers^3.348.0(3.840.0)^3.844.0(3.1075.0)client-secrets-manager; same transitive chainaws-cdk-lib^2.78.0(2.204.0)^2.246.0(2.260.0)fast-uri,yaml,minimatch,brace-expansion,ajv@8.xfast-xml-parser@aws-sdk/core@3.844.0+)@aws-sdk/client-secrets-managerfast-uriaws-cdk-libparent bump (nested underajv)yamlaws-cdk-libparent bump (nested exact pin updated)minimatch(root)npm update; semver-compatible with all declaring parentsminimatch(aws-cdk-lib nested)aws-cdk-libparent bumpminimatch(filelist nested)npm update; semver-compatible withfilelistbrace-expansion(root)minimatch@3.xlockfile refreshbrace-expansion(aws-cdk-lib nested)aws-cdk-libparent bumpbrace-expansion(filelist nested)minimatch@5.xlockfile refresh@smithy/config-resolver@aws-sdk/client-secrets-managerajv(root, 6.x)npm update; semver-compatible witheslintajv(aws-cdk-lib nested, 8.x)aws-cdk-libparent bump (nested undertable)