[Aikido] Fix 33 security issues in fast-xml-parser, fast-uri, brace-expansion and 6 more - #53
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.15.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.1101.0 node_modules/@aws-sdk/client-sso removed node_modules/@aws-sdk/core 3.840.0 -> 3.977.4 node_modules/@aws-sdk/credential-provider-cognito-identity 3.840.0 -> 3.972.64 node_modules/@aws-sdk/credential-provider-env 3.840.0 -> 3.972.65 node_modules/@aws-sdk/credential-provider-http 3.840.0 -> 3.972.67 node_modules/@aws-sdk/credential-provider-ini 3.840.0 -> 3.973.10 node_modules/@aws-sdk/credential-provider-node 3.840.0 -> 3.972.76 node_modules/@aws-sdk/credential-provider-process 3.840.0 -> 3.972.65 node_modules/@aws-sdk/credential-provider-sso 3.840.0 -> 3.973.9 node_modules/@aws-sdk/credential-provider-web-identity 3.840.0 -> 3.972.71 node_modules/@aws-sdk/credential-providers 3.840.0 -> 3.1101.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.39 node_modules/@aws-sdk/region-config-resolver removed node_modules/@aws-sdk/token-providers 3.840.0 -> 3.1100.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.37 node_modules/@smithy/abort-controller removed node_modules/@smithy/config-resolver removed node_modules/@smithy/core 3.6.0 -> 3.31.1 node_modules/@smithy/credential-provider-imds 4.0.6 -> 4.4.16 node_modules/@smithy/fetch-http-handler 5.0.4 -> 5.6.13 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.13 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.12 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.263.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.8 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.7.2 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 → #54 |
aikido-autofix
Bot
deleted the
fix/aikido-security-update-packages-81267167-ie3g
branch
August 7, 2026 00:21
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
✅ 33 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, and fs-extra. The fixes are applied via three direct-dependency version bumps in the root
package.json(aws-cdk-lib,@aws-sdk/client-secrets-manager,@aws-sdk/credential-providers) plus lockfile-only transitive refreshes forminimatch,brace-expansion, andajv, all reflected inpackage-lock.json.fast-xml-parser
Previously resolved at
4.4.1as a transitive dependency of@aws-sdk/core, which exact-pinned it. Bumping@aws-sdk/client-secrets-managerfrom^3.348.0to^3.844.0inpackage.jsoncaused@aws-sdk/coreto resolve at3.844.0, which declaresfast-xml-parser@5.2.5— a version satisfying the≥4.5.5patched floor. After the lockfile refresh,fast-xml-parserno longer appears as a standalone resolved instance in the tree.fast-uri
Previously resolved at
3.0.6as a transitive dependency of theajv@8.xcopy bundled insideaws-cdk-lib. Bumpingaws-cdk-libfrom^2.78.0to^2.260.0inpackage.jsonresolvedaws-cdk-lib@2.263.0, which no longer carries a separately hoistedfast-uriinstance — the vulnerability is eliminated by the parent upgrade.brace-expansion
Three instances existed: a root instance at
1.1.12(viaminimatch@3.1.2), afilelist-nested instance at2.0.2(viaminimatch@5.1.6), and anaws-cdk-lib-bundled instance at5.0.8(viaminimatch@10.2.5). The root and filelist instances were fixed by runningnpm update brace-expansion minimatch --package-lock-only, which refreshed the lockfile to1.1.18and2.1.4respectively — both parents already declared compatible caret ranges. Theaws-cdk-lib-bundled5.0.8instance isinBundle: trueinsideaws-cdk-lib@2.263.0(the latest available release) and cannot be updated independently; it will be resolved when a futureaws-cdk-librelease bundlesbrace-expansion@≥5.0.9.aws-cdk-lib
A direct dependency, bumped from
^2.78.0to^2.260.0inpackage.json, resolving to2.263.0in the lockfile. This was necessary both to address vulnerabilities inaws-cdk-libitself and to pull in patched versions of several transitive dependencies it owns (fast-uri,yaml,fs-extra,minimatch,ajv@8.x).yaml
Previously resolved at
1.10.2as a bundled transitive insideaws-cdk-lib. Bumpingaws-cdk-libto^2.260.0resolvedaws-cdk-lib@2.263.0, which declaresyaml@1.10.3, satisfying the≥1.10.3patched floor.minimatch
Three instances existed: a root instance at
3.1.2(shared by eslint and other dev tooling), afilelist-nested instance at5.1.6, and anaws-cdk-lib-nested instance at3.1.2. Theaws-cdk-libbump resolved its nested copy to10.2.5. The root and filelist instances were refreshed to3.1.5and5.1.9respectively vianpm update minimatch --package-lock-only— all declaring parents already allowed the patched versions under their caret ranges.@smithy/config-resolver
Previously resolved at
4.1.4as a transitive of@aws-sdk/client-secrets-managerand related AWS SDK packages. Bumping@aws-sdk/client-secrets-managerto^3.844.0resolved the SDK suite to3.1101.0, which satisfies the≥4.4.0patched floor. After the lockfile refresh,@smithy/config-resolverno longer appears as a standalone resolved instance.ajv
Two instances existed: a root
6.12.6copy (used byeslint@8.57.1) and anaws-cdk-lib-nested8.17.1copy. Theaws-cdk-libbump eliminated the nested8.xinstance. The root6.xinstance was refreshed to6.15.0vianpm update ajv --package-lock-only—eslint@8.57.1already declaresajv@^6.12.4, which permits6.15.0.fs-extra
Previously resolved at
11.3.0as a transitive insideaws-cdk-lib. Bumpingaws-cdk-libto^2.260.0resolvedaws-cdk-lib@2.263.0, which declaresfs-extra@^11.3.6, satisfying the≥11.3.6patched floor.Version changes
aws-cdk-lib^2.78.0→2.204.0resolved^2.260.0→2.263.0resolved@aws-sdk/client-secrets-manager^3.348.0→3.840.0resolved^3.844.0→3.1101.0resolved@aws-sdk/credential-providers^3.348.0→3.840.0resolved^3.844.0→3.1101.0resolvedfast-xml-parser4.4.1fast-uri3.0.6@smithy/config-resolver4.1.4yaml(aws-cdk-lib nested)1.10.21.10.3fs-extra(aws-cdk-lib nested)11.3.011.3.6minimatch(aws-cdk-lib nested)3.1.210.2.5minimatch(root)3.1.23.1.5minimatch(filelist nested)5.1.65.1.9brace-expansion(root)1.1.121.1.18brace-expansion(filelist nested)2.0.22.1.4ajv(root)6.12.66.15.0ajv(aws-cdk-lib nested)8.17.1