[Aikido] Fix 18 security issues in fast-xml-parser, fast-uri, aws-cdk-lib and 5 more - #42
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.6.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-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 3.840.0 -> 3.1077.0 node_modules/@aws-sdk/client-secrets-manager 3.840.0 -> 3.1077.0 node_modules/@aws-sdk/client-sso removed node_modules/@aws-sdk/core 3.840.0 -> 3.974.25 node_modules/@aws-sdk/credential-provider-cognito-identity 3.840.0 -> 3.972.50 node_modules/@aws-sdk/credential-provider-env 3.840.0 -> 3.972.51 node_modules/@aws-sdk/credential-provider-http 3.840.0 -> 3.972.53 node_modules/@aws-sdk/credential-provider-ini 3.840.0 -> 3.972.58 node_modules/@aws-sdk/credential-provider-node 3.840.0 -> 3.972.60 node_modules/@aws-sdk/credential-provider-process 3.840.0 -> 3.972.51 node_modules/@aws-sdk/credential-provider-sso 3.840.0 -> 3.972.57 node_modules/@aws-sdk/credential-provider-web-identity 3.840.0 -> 3.972.57 node_modules/@aws-sdk/credential-providers 3.840.0 -> 3.1077.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.25 node_modules/@aws-sdk/region-config-resolver removed node_modules/@aws-sdk/token-providers 3.840.0 -> 3.1077.0 node_modules/@aws-sdk/types 3.840.0 -> 3.973.14 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.32 node_modules/@smithy/abort-controller removed node_modules/@smithy/config-resolver removed node_modules/@smithy/core 3.6.0 -> 3.28.0 node_modules/@smithy/credential-provider-imds 4.0.6 -> 4.4.4 node_modules/@smithy/fetch-http-handler 5.0.4 -> 5.6.1 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.1 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.0 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-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 → #43 |
aikido-autofix
Bot
deleted the
fix/aikido-security-update-packages-59587691-njvm
branch
July 3, 2026 23:25
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
✅ 18 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 security vulnerabilities in fast-xml-parser, fast-uri, aws-cdk-lib, brace-expansion, yaml, minimatch, @smithy/config-resolver, and ajv
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, and ajv. All fixes are applied via parent dependency bumps in the root
package.json, with a subsequentpackage-lock.jsonrefresh. Three direct dependencies were updated in the manifest (aws-cdk-lib,@aws-sdk/client-secrets-manager,@aws-sdk/credential-providers), and transitive packages were updated vianpm updateafter the manifest changes landed.fast-xml-parser
Previously resolved at
4.4.1as a transitive dependency of@aws-sdk/core, which was itself pulled in by@aws-sdk/client-secrets-managerand@aws-sdk/credential-providers. Bumping both AWS SDK direct dependencies inpackage.jsonto^3.844.0caused npm to resolve@aws-sdk/client-secrets-managerand@aws-sdk/credential-providersto3.1077.0, a version of the SDK that no longer includesfast-xml-parseras a dependency at all — eliminating the vulnerable package from the lockfile entirely.fast-uri
Resolved at
3.0.6nested underaws-cdk-lib/node_modules/ajv. Bumpingaws-cdk-libto^2.246.0inpackage.jsoncaused npm to resolveaws-cdk-libto2.260.0, which ships withajv@8.20.0nested inside it; that version ofajvdeclaresfast-uri: "^3.0.1", allowing resolution up to3.1.2. Thenpm update fast-uripass then advanced the nested copy to3.1.2, fixing the CVEs that require≥ 3.1.1and≥ 3.1.2. The CVE requiring3.1.3(AIKIDO-2026-507986) could not be resolved because3.1.3was suppressed by the safe-chain minimum-age check at the time of this fix; it will resolve automatically once that version ages past the threshold.aws-cdk-lib
A direct dependency declared as
^2.78.0, resolved at2.204.0. The declared spec was widened to^2.246.0inpackage.jsonto satisfy the CVE requiringaws-cdk-lib ≥ 2.246.0, causing npm to resolve it to2.260.0. This parent bump also transitively fixed the nestedyaml,minimatch,brace-expansion,ajv, andfast-uriinstances that live insideaws-cdk-lib's ownnode_modulessubtree.brace-expansion
Present in three lockfile locations: nested under
aws-cdk-lib/node_modules/minimatch(was1.1.12), at the root hoisted fromminimatch(was1.1.12), and nested underfilelist/node_modules/minimatch(was2.0.2). Theaws-cdk-libbump resolved the first instance to5.0.6(viaminimatch@10.2.5). The root and filelist instances were advanced to1.1.15and2.1.1respectively vianpm update brace-expansion minimatch --package-lock-only, which pulled their parentminimatchcopies to patched versions that carry a fixedbrace-expansion.yaml
Resolved at
1.10.2nested insideaws-cdk-lib/node_modules/yaml, where it was exact-pinned byaws-cdk-lib@2.204.0. Bumpingaws-cdk-libto^2.246.0(resolved2.260.0) was required becauseaws-cdk-lib@2.245.0is the first release that pinsyamlat1.10.3; the parent bump caused the nested copy to advance to1.10.3.minimatch
Present in three lockfile locations: nested under
aws-cdk-lib(was3.1.2), at the root hoisted from eslint and related dev tools (was3.1.2), and nested underfilelist(was5.1.6). Theaws-cdk-libbump resolved the first instance to10.2.5(the versionaws-cdk-lib@2.260.0declares). The root and filelist instances were advanced to3.1.5and5.1.9respectively vianpm update minimatch --package-lock-only, both satisfying the≥ 3.1.4/≥ 5.1.8patched-version floors.@smithy/config-resolver
Previously resolved at
4.1.4as a transitive dependency shared across multiple@aws-sdk/*packages. Bumping@aws-sdk/client-secrets-managerand@aws-sdk/credential-providersto^3.844.0inpackage.jsoncaused npm to resolve those packages to3.1077.0. In that version of the SDK the package structure was reorganised such that@smithy/config-resolverno longer appears as a separate lockfile entry, eliminating the vulnerable instance entirely.ajv
Present in two lockfile locations: at the root hoisted from eslint (was
6.12.6) and nested underaws-cdk-lib/node_modules/table(was8.17.1). Theaws-cdk-libbump to2.260.0advanced the nested8.xcopy to8.20.0, satisfying the≥ 8.18.0patched-version floor. The root6.xcopy was advanced to6.15.0vianpm update ajv --package-lock-only, satisfying the≥ 6.14.0patched-version floor.Version changes
aws-cdk-lib^2.78.0→2.204.0^2.246.0→2.260.0@aws-sdk/client-secrets-manager^3.348.0→3.840.0^3.844.0→3.1077.0@aws-sdk/credential-providers^3.348.0→3.840.0^3.844.0→3.1077.0fast-xml-parser4.4.1@smithy/config-resolver4.1.4yaml(nested in aws-cdk-lib)1.10.21.10.3minimatch(aws-cdk-lib subtree)3.1.210.2.5minimatch(root)3.1.23.1.5npm update minimatchminimatch(filelist subtree)5.1.65.1.9npm update minimatchbrace-expansion(aws-cdk-lib subtree)1.1.125.0.6brace-expansion(root)1.1.121.1.15brace-expansion(filelist subtree)2.0.22.1.1ajv(aws-cdk-lib subtree)8.17.18.20.0ajv(root)6.12.66.15.0npm update ajvfast-uri(aws-cdk-lib/ajv subtree)3.0.63.1.2npm update fast-uri@aws-sdk/core3.840.03.974.25@aws-sdk/client-cognito-identity3.840.03.1077.0@aws-sdk/nested-clients3.840.03.997.25