[Aikido] Fix 17 security issues in fast-xml-parser, fast-uri, aws-cdk-lib and 5 more#40
Open
aikido-autofix[bot] wants to merge 1 commit into
Open
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.3.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.1070.0 node_modules/@aws-sdk/client-secrets-manager 3.840.0 -> 3.1070.0 node_modules/@aws-sdk/client-sso removed node_modules/@aws-sdk/core 3.840.0 -> 3.974.21 node_modules/@aws-sdk/credential-provider-cognito-identity 3.840.0 -> 3.972.46 node_modules/@aws-sdk/credential-provider-env 3.840.0 -> 3.972.47 node_modules/@aws-sdk/credential-provider-http 3.840.0 -> 3.972.49 node_modules/@aws-sdk/credential-provider-ini 3.840.0 -> 3.972.54 node_modules/@aws-sdk/credential-provider-node 3.840.0 -> 3.972.56 node_modules/@aws-sdk/credential-provider-process 3.840.0 -> 3.972.47 node_modules/@aws-sdk/credential-provider-sso 3.840.0 -> 3.972.53 node_modules/@aws-sdk/credential-provider-web-identity 3.840.0 -> 3.972.53 node_modules/@aws-sdk/credential-providers 3.840.0 -> 3.1070.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.21 node_modules/@aws-sdk/region-config-resolver removed node_modules/@aws-sdk/token-providers 3.840.0 -> 3.1069.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.30 node_modules/@smithy/abort-controller removed node_modules/@smithy/config-resolver removed node_modules/@smithy/core 3.6.0 -> 3.25.0 node_modules/@smithy/credential-provider-imds 4.0.6 -> 4.4.0 node_modules/@smithy/fetch-http-handler 5.0.4 -> 5.5.0 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.0 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.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.259.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 4.4.1 -> 5.7.3 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 1.1.2 -> 2.4.0 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/@nodable/entities added node_modules/anynum added node_modules/aws-cdk-lib/node_modules/@aws-cdk/cloud-assembly-api added node_modules/fast-xml-builder added node_modules/path-expression-matcher added node_modules/xml-naming added |
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 path normalization bypass, and other security vulnerabilities.
All breaking changes by upgrading fast-xml-parser from version 4.4.1 to 5.7.3 (CHANGELOG)
✅ 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 security vulnerabilities in fast-xml-parser, fast-uri, aws-cdk-lib, yaml, minimatch, brace-expansion, @smithy/config-resolver, and ajv
Short summary
This PR remediates security vulnerabilities in eight npm packages: fast-xml-parser, fast-uri, aws-cdk-lib, yaml, minimatch, brace-expansion, @smithy/config-resolver, and ajv. All of these are transitive dependencies resolved through the root
package-lock.json. Fixes were applied by bumping three direct dependencies in the rootpackage.json(aws-cdk-lib,@aws-sdk/client-secrets-manager,@aws-sdk/credential-providers) and then refreshing the lockfile; remaining transitive instances were resolved vianpm update --package-lock-only.fast-xml-parser
Previously resolved at
4.4.1as a transitive dependency of@aws-sdk/core, which exact-pinned it. Bumping the direct dependencies@aws-sdk/client-secrets-managerand@aws-sdk/credential-providersto^3.844.0caused@aws-sdk/coreto update to3.974.21, which in turn resolvedfast-xml-parserto5.7.3— well above the minimum patched floor of4.5.5. No override was needed because the parent's declared range was semver-compatible with the patched version.fast-uri
Previously resolved at
3.0.6as a transitive dependency of theaws-cdk-lib-nested copy ofajv(8.17.1). Bumpingaws-cdk-libto^2.246.0caused the nestedajvto update to8.20.0, which resolvedfast-urito3.1.2— satisfying the minimum patched version of3.1.2. Theajvdeclared range^3.0.1was already semver-compatible with the fix.aws-cdk-lib
A direct dependency in the root
package.json, previously declared as^2.78.0and resolved at2.204.0. The declared spec was widened to^2.246.0andnpm install --package-lock-onlyresolved it to2.259.0, directly addressing the vulnerability inaws-cdk-libitself and simultaneously pulling in patched transitive versions ofyaml,minimatch,fast-uri, andajv(8.x) nested within it.yaml
Previously resolved at
1.10.2as a transitive dependency exact-pinned byaws-cdk-lib("yaml": "1.10.2"). Bumpingaws-cdk-libto^2.246.0caused the newer release to pinyamlat1.10.3, which meets the minimum patched version. No separate lockfile update was required for this package.minimatch
Resolved in three locations: a root-hoisted instance at
3.1.2(shared byeslint,glob,jake, and others), anaws-cdk-lib-nested instance at3.1.2, and afilelist-nested instance at5.1.6. Bumpingaws-cdk-libto^2.246.0caused its nestedminimatchto jump to10.2.5; runningnpm update minimatch --package-lock-onlybrought the root instance to3.1.5and thefilelistinstance to5.1.9, all satisfying the minimum patched floor of3.1.4(or equivalent for their respective major lines).brace-expansion
Resolved in three locations as a transitive dependency of
minimatch. All three instances were below the patched floors (1.1.13/2.0.3/5.0.5). Runningnpm update brace-expansion --package-lock-onlyresolved the root instance to1.1.15, thefilelist-nested instance to2.1.1, and theaws-cdk-lib-nested instance to5.0.6, all satisfying the respective patched version requirements.@smithy/config-resolver
Previously resolved at
4.1.4as a transitive dependency of@aws-sdk/client-secrets-manager,@aws-sdk/credential-providers, and related AWS SDK packages. Bumping@aws-sdk/client-secrets-managerand@aws-sdk/credential-providersto^3.844.0in the rootpackage.jsonupdated the AWS SDK packages to3.1070.0, which resolved@smithy/config-resolverto a patched version (≥4.4.0) via semver. The parent's declared range^4.1.4was already compatible with the fix.ajv
Resolved in two major-version lines. The
6.xinstance (6.12.6), used byeslintand@eslint/eslintrc, was updated to6.15.0vianpm update ajv --package-lock-only— the parent's^6.12.4range is compatible with the patched floor of6.14.0. The8.xinstance (8.17.1), nested underaws-cdk-lib's copy oftable, was updated to8.20.0via the same command —table's^8.0.1range is compatible with the patched floor of8.18.0.Version changes
aws-cdk-lib^2.78.0→2.204.0^2.246.0→2.259.0@aws-sdk/client-secrets-manager^3.348.0→3.840.0^3.844.0→3.1070.0@aws-sdk/credential-providers^3.348.0→3.840.0^3.844.0→3.1070.0@aws-sdk/core3.840.03.974.21fast-xml-parser4.4.15.7.3fast-uri3.0.63.1.2yaml1.10.21.10.3minimatch(root)3.1.23.1.5minimatch(aws-cdk-lib nested)3.1.210.2.5minimatch(filelist nested)5.1.65.1.9brace-expansion(root)1.1.121.1.15brace-expansion(aws-cdk-lib nested)1.1.125.0.6brace-expansion(filelist nested)2.0.22.1.1@smithy/config-resolver4.1.44.6.1+ajv(6.x, root)6.12.66.15.0ajv(8.x, aws-cdk-lib nested)8.17.18.20.0