fix: resolve fast-xml-parser HIGH/CRITICAL vulnerabilities#3477
Open
fix: resolve fast-xml-parser HIGH/CRITICAL vulnerabilities#3477
Conversation
…ties Upgrades AWS SDK client packages and adds a resolution to eliminate vulnerable fast-xml-parser versions (4.4.1, 5.2.5, 5.5.2) from the dependency tree. Changes: - Broadened fast-xml-parser resolution to force all instances to ~5.5.12 - Updated @aws-sdk/core, @aws-sdk/xml-builder and related packages in amplify-data-construct and amplify-graphql-api-construct - Upgraded direct fast-xml-parser dep from 5.5.2 to ~5.5.12 in constructs - Upgraded AWS SDK clients in test packages to ^3.973.0 After these changes, yarn.lock contains only fast-xml-parser@5.5.12 (safe, >= 5.5.6) with no vulnerable versions remaining.
Remove stale lockfile entries for @aws-sdk packages in the 3.775.x and 3.810.x version families that declared fast-xml-parser 4.4.1. These came from aws-appsync@4.1.10 (via @aws-sdk/client-s3@^3.25.0 resolved to 3.779.0) and @aws-cdk/toolkit-lib@1.16.0 (via @aws-sdk/client-*@^3 resolved to 3.810.0). After removal, yarn install re-resolved these ranges to the latest compatible versions which use @aws-sdk/core >= 3.974.8 (no fast-xml-parser dependency). Remaining: @aws-sdk/core@3.622.0 from @aws-amplify/ai-constructs@1.6.1 still declares fast-xml-parser 4.4.1, but the resolution forces it to 5.5.12. This will be addressed separately.
svidgen
approved these changes
May 11, 2026
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.
Summary
Upgrades AWS SDK client packages and adds a yarn resolution to eliminate all vulnerable fast-xml-parser versions from the dependency tree.
Vulnerabilities Fixed
@aws-sdk/core@3.622–3.826) — CRITICAL/HIGH@aws-sdk/xml-builder@3.953.0) — CRITICALApproach
resolutionsto force ALL fast-xml-parser instances to~5.5.12(safe, >= 5.5.6)fast-xml-parserdependency inamplify-data-constructandamplify-graphql-api-constructfrom5.5.2to~5.5.12@aws-sdk/core,@aws-sdk/xml-builder, and related bundled packages in construct packages to latest available versions (>= 3.972.0)^3.973.0Verification
After
yarn install, the lockfile contains only fast-xml-parser@5.5.12 — a single safe version. No vulnerable versions (4.x < 4.5.5 or 5.x < 5.5.6) remain.Build
yarn buildpasses successfully across all 27 packages.Files Modified
package.json(root resolutions)packages/amplify-data-construct/package.jsonpackages/amplify-graphql-api-construct/package.jsonpackages/amplify-graphql-api-construct-tests/package.jsonpackages/amplify-e2e-tests/package.jsonpackages/amplify-graphql-model-transformer/package.jsonpackages/amplify-graphql-schema-generator/package.jsonpackages/graphql-transformers-e2e-tests/package.jsonyarn.lock