[Aikido] Fix 35 security issues in fast-xml-parser, fast-uri, brace-expansion and 6 more - #56
Closed
aikido-autofix[bot] wants to merge 1 commit into
Closed
aikido-autofix[bot] wants to merge 1 commit into
aikido-autofix[bot] wants to merge 1 commit into
Conversation
Package lock diff2.4.1 -> 2.6.1 node_modules/@aws-cdk/asset-awscli-v1 2.2.242 -> 2.2.292 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.20.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.1117.0 node_modules/@aws-sdk/client-sso removed node_modules/@aws-sdk/core 3.840.0 -> 3.977.9 node_modules/@aws-sdk/credential-provider-cognito-identity 3.840.0 -> 3.972.69 node_modules/@aws-sdk/credential-provider-env 3.840.0 -> 3.972.70 node_modules/@aws-sdk/credential-provider-http 3.840.0 -> 3.972.72 node_modules/@aws-sdk/credential-provider-ini 3.840.0 -> 3.973.15 node_modules/@aws-sdk/credential-provider-node 3.840.0 -> 3.972.81 node_modules/@aws-sdk/credential-provider-process 3.840.0 -> 3.972.70 node_modules/@aws-sdk/credential-provider-sso 3.840.0 -> 3.973.14 node_modules/@aws-sdk/credential-provider-web-identity 3.840.0 -> 3.972.76 node_modules/@aws-sdk/credential-providers 3.840.0 -> 3.1117.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.44 node_modules/@aws-sdk/region-config-resolver removed node_modules/@aws-sdk/token-providers 3.840.0 -> 3.1116.0 node_modules/@aws-sdk/types 3.840.0 -> 3.974.5 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.40 node_modules/@smithy/abort-controller removed node_modules/@smithy/config-resolver removed node_modules/@smithy/core 3.6.0 -> 3.33.3 node_modules/@smithy/credential-provider-imds 4.0.6 -> 4.5.2 node_modules/@smithy/fetch-http-handler 5.0.4 -> 5.7.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.11.3 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.7.3 node_modules/@smithy/smithy-client removed node_modules/@smithy/types 4.3.1 -> 4.17.2 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.266.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.9 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.6 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.5 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/bowser 2.11.0 -> 2.14.1 node_modules/brace-expansion 1.1.12 -> 1.1.18 node_modules/constructs 10.4.2 -> 10.8.1 node_modules/fast-xml-parser removed node_modules/filelist/node_modules/brace-expansion 2.0.2 -> 2.1.4 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/aws-cdk-lib/node_modules/@aws/cloudformation-validate added |
Author
|
Closed by Aikido: a new AutoFix has been created → #57 |
aikido-autofix
Bot
deleted the
fix/aikido-security-update-packages-98482257-853z
branch
September 4, 2026 00:33
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 inconsistency, and other security vulnerabilities.
✅ No breaking changes for: fast-xml-parser, fast-uri, brace-expansion, yaml, @smithy/config-resolver, fs-extra
✅ 35 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.fast-uritreats as paths but Node's URL parser treats as authority, enabling redirection to unintended destinations.encryptedproperty to produce opposite behavior, disabling encryption when set totrueinstead of enabling it, potentially leaving CodeBuild logs unencrypted. This is an information disclosure risk affecting logs that may lack encryption at rest.*()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, brace-expansion, aws-cdk-lib, yaml, minimatch, @smithy/config-resolver, ajv, and fs-extra
Short summary
This PR remediates security vulnerabilities in nine npm packages:
fast-xml-parser,fast-uri,brace-expansion,aws-cdk-lib,yaml,minimatch,@smithy/config-resolver,ajv, andfs-extra. All fixes are applied via direct dependency version spec bumps in the rootpackage.json, with the resulting transitive resolutions reflected inpackage-lock.json. No overrides were required.fast-xml-parser
Previously resolved at
4.4.1as a transitive dependency of@aws-sdk/core, which was itself pulled in by the direct dependencies@aws-sdk/client-secrets-managerand@aws-sdk/credential-providers. Both direct deps were bumped from^3.348.0to^3.844.0inpackage.json, which caused npm to resolve@aws-sdk/client-secrets-managerand@aws-sdk/credential-providersto3.1117.0. At that version,@aws-sdk/corewas updated to3.977.9, which no longer carriesfast-xml-parseras a dependency at all — the package is entirely absent from the lockfile, eliminating the vulnerability.fast-uri
Previously resolved at
3.0.6as a transitive dependency ofajv@8.17.1, which was itself nested insideaws-cdk-lib. Bumpingaws-cdk-libfrom^2.78.0to^2.260.0inpackage.jsoncaused npm to resolveaws-cdk-libto2.266.0, which no longer carries a nestedajv@8.xinstance and therefore no longer pulls infast-uri. The package is entirely absent from the lockfile at the new resolution, eliminating the vulnerability.brace-expansion
Present in three lockfile instances, all as a transitive dependency of
minimatch. The root instance (1.1.12, viaminimatch@3.1.2) and thefilelist-nested instance (2.0.2, viaminimatch@5.1.6) were resolved to1.1.18and2.1.4respectively vianpm update, which is possible becauseminimatch@3.xand5.xdeclarebrace-expansionwith caret ranges that allow the patched versions. Theaws-cdk-lib-nested instance moved from1.1.12to5.0.9as a consequence ofaws-cdk-libbeing bumped to2.266.0, which bundles a newerminimatch@10.2.5that in turn resolvesbrace-expansion@5.0.9.aws-cdk-lib
A direct dependency declared as
^2.78.0, resolved at2.204.0. The declared spec was bumped to^2.260.0inpackage.jsonto satisfy the patched version floor of2.260.0, causing npm to resolve it to2.266.0. This was necessary both to fixaws-cdk-libitself and to pull in patched versions of its bundled/nested transitives (yaml,minimatch,fs-extra,brace-expansion).yaml
Resolved at
1.10.2as a bundled transitive insideaws-cdk-lib. Bumpingaws-cdk-libto^2.260.0(resolved2.266.0) was required becauseaws-cdk-lib@2.245.0is the first release that pinsyamlto1.10.3; the patched version1.10.3is now reflected in the lockfile undernode_modules/aws-cdk-lib/node_modules/yaml.minimatch
Present in three lockfile instances. The
aws-cdk-lib-nested instance moved from3.1.2to10.2.5as a direct consequence of theaws-cdk-libbump to2.266.0, which bundles a much newerminimatch. The root instance (shared byeslint,@eslint/eslintrc,glob,jake, and others) moved from3.1.2to3.1.5vianpm update, which is within the^3.1.2range those parents declare. Thefilelist-nested instance moved from5.1.6to5.1.9via the samenpm updatepass.@smithy/config-resolver
Previously resolved at
4.1.4as a transitive dependency of@aws-sdk/client-secrets-managerand related@aws-sdkpackages. Bumping@aws-sdk/client-secrets-managerand@aws-sdk/credential-providersto^3.844.0caused npm to resolve those packages to3.1117.0. At that version the@aws-sdkecosystem no longer includes@smithy/config-resolveras a separate lockfile entry — the package is entirely absent from the resolved tree, eliminating the vulnerability.ajv
Present in two lockfile instances. The
aws-cdk-lib-nestedajv@8.17.1instance was eliminated entirely whenaws-cdk-libwas bumped to2.266.0(that version no longer nestsajv@8.x). The rootajv@6.12.6instance (pulled in byeslint@8.57.1and@eslint/eslintrc@2.1.4) was resolved to6.15.0vianpm update; this is within the^6.12.4range those parents declare, so no parent bump was needed.fs-extra
Resolved at
11.3.0as a bundled transitive insideaws-cdk-lib. Bumpingaws-cdk-libto^2.260.0(resolved2.266.0) was sufficient becauseaws-cdk-lib@2.266.0declaresfs-extraas^11.3.6, and the patched version11.3.6is now reflected in the lockfile undernode_modules/aws-cdk-lib/node_modules/fs-extra.Version changes
aws-cdk-lib(package.json spec)^2.78.0^2.260.0aws-cdk-lib(lockfile resolved)2.204.02.266.0@aws-sdk/client-secrets-manager(package.json spec)^3.348.0^3.844.0fast-xml-parser/@smithy/config-resolver@aws-sdk/client-secrets-manager(lockfile resolved)3.840.03.1117.0@aws-sdk/credential-providers(package.json spec)^3.348.0^3.844.0client-secrets-manager(same version group); parent of@aws-sdk/core@aws-sdk/credential-providers(lockfile resolved)3.840.03.1117.0@aws-sdk/core3.840.03.977.9@aws-sdk/client-secrets-manager); new version dropsfast-xml-parserfast-xml-parser4.4.1@aws-sdk/corefast-uri3.0.6aws-cdk-lib@smithy/config-resolver4.1.4@aws-sdkversionsyaml(inaws-cdk-lib)1.10.21.10.3aws-cdk-lib)minimatch(inaws-cdk-lib)3.1.210.2.5aws-cdk-lib)minimatch(root)3.1.23.1.5npm update; within declared^3.1.2rangeminimatch(infilelist)5.1.65.1.9npm update; within declared^5.0.1rangebrace-expansion(inaws-cdk-lib)1.1.125.0.9aws-cdk-lib→minimatch@10.2.5)brace-expansion(root)1.1.121.1.18npm update; withinminimatch@3.xdeclared^1.1.7rangebrace-expansion(infilelist)2.0.22.1.4npm update; withinminimatch@5.xdeclared^2.0.1rangefs-extra(inaws-cdk-lib)11.3.011.3.6aws-cdk-lib)ajv(inaws-cdk-lib)8.17.1aws-cdk-lib@2.266.0no longer nestsajv@8.xajv(root)6.12.66.15.0npm update; withineslintdeclared^6.12.4range@aws-sdk/client-cognito-identity3.840.0@aws-sdkparent bump@aws-sdk/client-sso3.840.0@aws-sdkparent bump@aws-sdk/nested-clients3.840.0@aws-sdkparent bump@smithy/util-defaults-mode-node4.0.21@aws-sdkparent bump