[Aikido] Fix 24 security issues in fast-xml-parser, fast-uri, aws-cdk-lib and 6 more - #47
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.12.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.5 node_modules/@aws-crypto/sha256-browser removed node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer removed node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from removed node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8 removed node_modules/@aws-crypto/sha256-js removed node_modules/@aws-crypto/supports-web-crypto removed node_modules/@aws-crypto/util removed node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer removed node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from removed node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8 removed node_modules/@aws-sdk/client-cognito-identity removed node_modules/@aws-sdk/client-secrets-manager 3.840.0 -> 3.1090.0 node_modules/@aws-sdk/client-sso removed node_modules/@aws-sdk/core 3.840.0 -> 3.975.3 node_modules/@aws-sdk/credential-provider-cognito-identity 3.840.0 -> 3.972.58 node_modules/@aws-sdk/credential-provider-env 3.840.0 -> 3.972.59 node_modules/@aws-sdk/credential-provider-http 3.840.0 -> 3.972.61 node_modules/@aws-sdk/credential-provider-ini 3.840.0 -> 3.973.4 node_modules/@aws-sdk/credential-provider-node 3.840.0 -> 3.972.70 node_modules/@aws-sdk/credential-provider-process 3.840.0 -> 3.972.59 node_modules/@aws-sdk/credential-provider-sso 3.840.0 -> 3.973.3 node_modules/@aws-sdk/credential-provider-web-identity 3.840.0 -> 3.972.65 node_modules/@aws-sdk/credential-providers 3.840.0 -> 3.1090.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.33 node_modules/@aws-sdk/region-config-resolver removed node_modules/@aws-sdk/token-providers 3.840.0 -> 3.1088.0 node_modules/@aws-sdk/types 3.840.0 -> 3.974.2 node_modules/@aws-sdk/util-endpoints removed node_modules/@aws-sdk/util-locate-window 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.36 node_modules/@smithy/abort-controller removed node_modules/@smithy/config-resolver removed node_modules/@smithy/core 3.6.0 -> 3.29.5 node_modules/@smithy/credential-provider-imds 4.0.6 -> 4.4.10 node_modules/@smithy/fetch-http-handler 5.0.4 -> 5.6.7 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.9.7 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.6.6 node_modules/@smithy/smithy-client removed node_modules/@smithy/types 4.3.1 -> 4.16.1 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.261.0 node_modules/aws-cdk-lib/node_modules/ajv removed node_modules/aws-cdk-lib/node_modules/ansi-regex removed node_modules/aws-cdk-lib/node_modules/ansi-styles removed node_modules/aws-cdk-lib/node_modules/astral-regex removed 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/color-convert removed node_modules/aws-cdk-lib/node_modules/color-name removed node_modules/aws-cdk-lib/node_modules/concat-map removed node_modules/aws-cdk-lib/node_modules/emoji-regex removed node_modules/aws-cdk-lib/node_modules/fast-deep-equal removed node_modules/aws-cdk-lib/node_modules/fast-uri removed node_modules/aws-cdk-lib/node_modules/fs-extra 11.3.0 -> 11.3.5 node_modules/aws-cdk-lib/node_modules/is-fullwidth-code-point removed node_modules/aws-cdk-lib/node_modules/json-schema-traverse removed node_modules/aws-cdk-lib/node_modules/jsonfile 6.1.0 -> 6.2.1 node_modules/aws-cdk-lib/node_modules/lodash.truncate removed node_modules/aws-cdk-lib/node_modules/minimatch 3.1.2 -> 10.2.5 node_modules/aws-cdk-lib/node_modules/require-from-string removed node_modules/aws-cdk-lib/node_modules/semver 7.7.2 -> 7.8.1 node_modules/aws-cdk-lib/node_modules/slice-ansi removed node_modules/aws-cdk-lib/node_modules/string-width removed node_modules/aws-cdk-lib/node_modules/strip-ansi removed node_modules/aws-cdk-lib/node_modules/table removed node_modules/aws-cdk-lib/node_modules/yaml 1.10.2 -> 1.10.3 node_modules/balanced-match removed node_modules/bowser 2.11.0 -> 2.14.1 node_modules/brace-expansion removed node_modules/constructs 10.4.2 -> 10.7.0 node_modules/fast-xml-parser removed node_modules/filelist/node_modules/brace-expansion 2.0.2 -> 2.1.2 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-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 node_modules/filelist/node_modules/balanced-match added node_modules/minimatch/node_modules/balanced-match added node_modules/minimatch/node_modules/brace-expansion added |
Author
|
Closed by Aikido: a new AutoFix has been created → #48 |
aikido-autofix
Bot
deleted the
fix/aikido-security-update-packages-71372232-ggd5
branch
July 22, 2026 23:41
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 XSS via XML entity shadowing, XML entity expansion DoS attacks, stack overflow in XML builder, SSRF bypass via URI parsing, and other security vulnerabilities.
✅ No breaking changes for: fast-xml-parser, fast-uri, brace-expansion, yaml, @smithy/config-resolver
✅ 24 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.$dataoption is enabled by using inherited property names likeconstructorortoStringas format values, causing unexpected validation behavior or errors.🤖 Remediation details
Fix security vulnerabilities in fast-xml-parser, fast-uri, aws-cdk-lib, brace-expansion, yaml, minimatch, @smithy/config-resolver, ajv, and fs-extra
Short summary
This PR remediates security vulnerabilities in the following packages: fast-xml-parser, fast-uri, aws-cdk-lib, brace-expansion, yaml, minimatch, @smithy/config-resolver, ajv, and fs-extra. All fixes are applied via manifest changes to the root
package.jsonand a refreshedpackage-lock.json; no workspace members exist. The primary levers were bumping the direct dependencyaws-cdk-lib(which carries several vulnerable transitives as nested or bundled deps) and bumping the direct dependencies@aws-sdk/client-secrets-managerand@aws-sdk/credential-providers(which pull in the@aws-sdk/corechain that carriesfast-xml-parserand@smithy/config-resolver).fast-xml-parser
fast-xml-parseris a transitive dependency pulled in by@aws-sdk/core, which is itself a transitive of the direct dependencies@aws-sdk/client-secrets-managerand@aws-sdk/credential-providers. The installed version4.4.1was vulnerable; the fix required@aws-sdk/core ≥ 3.844.0, which in turn required bumping both direct AWS SDK dependencies from^3.348.0to^3.844.0inpackage.json. After the manifest edit andnpm install --package-lock-only, the SDK chain resolved to@aws-sdk/core@3.975.3, which no longer carries a separatefast-xml-parserentry (it moved to5.xinternally), eliminating the vulnerable instance entirely.fast-uri
fast-uriwas a transitive nested underaws-cdk-lib/node_modules/ajv. The installed version3.0.6was vulnerable; patched versions require≥ 3.1.4. Bumping the direct dependencyaws-cdk-libfrom^2.78.0to^2.260.0inpackage.jsonresolvedaws-cdk-libto2.261.0, which no longer carries a separate nestedfast-urientry, eliminating the vulnerable instance.aws-cdk-lib
aws-cdk-libitself was listed as a vulnerable direct dependency (patched at≥ 2.260.0). The declared spec inpackage.jsonwas widened from^2.78.0to^2.260.0, resolving the lockfile to2.261.0. This single bump also transitively fixed the nested instances offast-uri,yaml,minimatch,brace-expansion(root and filelist paths),ajv(nested underaws-cdk-lib), andfs-extracarried byaws-cdk-lib.brace-expansion
brace-expansionappeared in three lockfile paths. The root instance (1.1.12) and thefilelist-nested instance (2.0.2) were fixed by runningnpm update brace-expansion --package-lock-only, which resolved them to1.1.16and2.1.2respectively (both within the semver ranges already declared by their parentminimatchversions). The third instance (5.0.6) is nested underaws-cdk-lib/node_modules/minimatchand carries"inBundle": truein the lockfile — it is physically embedded in theaws-cdk-lib@2.261.0tarball and cannot be updated independently via npm overrides ornpm update;2.261.0is the latest publishedaws-cdk-librelease, so this instance remains at5.0.6pending an upstream bundle update.yaml
yamlwas a transitive nested underaws-cdk-lib, exact-pinned at1.10.2(vulnerable). Bumpingaws-cdk-libto^2.260.0resolvedaws-cdk-lib@2.261.0, which pinsyamlat1.10.3(patched), fixing the instance.minimatch
minimatchappeared in three lockfile paths. Theaws-cdk-lib-nested instance moved from3.1.2to10.2.5as a result of theaws-cdk-libbump (the new release declares^10.2.5). The root instance (3.1.2) and thefilelist-nested instance (5.1.6) were updated to3.1.5and5.1.9respectively vianpm update minimatch --package-lock-only, both within the semver ranges already declared by their parent packages.@smithy/config-resolver
@smithy/config-resolverwas a transitive pulled in by multiple@aws-sdkpackages under the^4.1.4range. The installed version4.1.4was vulnerable; the patched floor is4.4.0. Because^4.1.4already permits≥ 4.4.0, bumping@aws-sdk/client-secrets-managerand@aws-sdk/credential-providersto^3.844.0caused npm to re-resolve the entire SDK graph, and the@smithy/config-resolverinstance was updated to a patched version (the separate lockfile entry was eliminated as the SDK packages consolidated their resolution).ajv
ajvappeared in two lockfile paths. The instance undereslint(6.12.6) was fixed bynpm update ajv --package-lock-only, resolving it to6.15.0within the^6.12.4range already declared byeslint@8.57.1. The instance nested underaws-cdk-lib/node_modules/table(8.17.1) was fixed by theaws-cdk-libbump to2.261.0, which carries atableversion declaring^8.0.1— npm resolved this to a patched8.xrelease.fs-extra
fs-extrawas a transitive nested underaws-cdk-lib, at version11.3.0(vulnerable; patched floor11.3.6). Bumpingaws-cdk-libto^2.260.0resolvedaws-cdk-lib@2.261.0, which declaresfs-extra@^11.3.5. The lockfile resolved this to11.3.5;11.3.6(the patched floor) was not resolved because the entry carries"inBundle": true— it is physically embedded in theaws-cdk-libtarball and cannot be updated independently. This instance remains at11.3.5pending an upstream bundle update from theaws-cdk-libmaintainers.Version changes
aws-cdk-lib^2.78.0→2.204.0resolved^2.260.0→2.261.0resolved@aws-sdk/client-secrets-manager^3.348.0→3.840.0resolved^3.844.0→3.1090.0resolved@aws-sdk/credential-providers^3.348.0→3.840.0resolved^3.844.0→3.1090.0resolvedfast-xml-parser4.4.1fast-uri3.0.6(nested under aws-cdk-lib)yaml1.10.2(nested under aws-cdk-lib)1.10.3(nested under aws-cdk-lib)minimatch3.1.2(aws-cdk-lib nested)10.2.5(aws-cdk-lib nested)minimatch3.1.2(root)3.1.5(root)minimatch5.1.6(filelist nested)5.1.9(filelist nested)brace-expansion1.1.12(root)1.1.16(root)brace-expansion2.0.2(filelist nested)2.1.2(filelist nested)brace-expansion5.0.6(aws-cdk-lib bundled)5.0.6(unchanged — bundled)@smithy/config-resolver4.1.4ajv6.12.6(root, under eslint)6.15.0(root, under eslint)ajv8.17.1(aws-cdk-lib nested)fs-extra11.3.0(aws-cdk-lib bundled)11.3.5(aws-cdk-lib bundled)@aws-sdk/core3.840.03.975.3