Skip to content

fix: resolve fast-xml-parser HIGH/CRITICAL vulnerabilities#3477

Open
Simone319 wants to merge 2 commits intomainfrom
fix/fast-xml-parser-vulnerabilities
Open

fix: resolve fast-xml-parser HIGH/CRITICAL vulnerabilities#3477
Simone319 wants to merge 2 commits intomainfrom
fix/fast-xml-parser-vulnerabilities

Conversation

@Simone319
Copy link
Copy Markdown
Contributor

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

  • fast-xml-parser@4.4.1 (from @aws-sdk/core@3.622–3.826) — CRITICAL/HIGH
  • fast-xml-parser@5.2.5 (from @aws-sdk/xml-builder@3.953.0) — CRITICAL
  • fast-xml-parser@5.5.2 (from direct dep in construct packages) — CRITICAL

Approach

  1. Broadened the root resolutions to force ALL fast-xml-parser instances to ~5.5.12 (safe, >= 5.5.6)
  2. Updated the direct fast-xml-parser dependency in amplify-data-construct and amplify-graphql-api-construct from 5.5.2 to ~5.5.12
  3. Upgraded @aws-sdk/core, @aws-sdk/xml-builder, and related bundled packages in construct packages to latest available versions (>= 3.972.0)
  4. Upgraded AWS SDK clients in test packages to ^3.973.0

Verification

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.

$ grep -A2 "^fast-xml-parser" yarn.lock | grep "version" | sort -u
  version "5.5.12"

Build

yarn build passes successfully across all 27 packages.

Files Modified

  • package.json (root resolutions)
  • packages/amplify-data-construct/package.json
  • packages/amplify-graphql-api-construct/package.json
  • packages/amplify-graphql-api-construct-tests/package.json
  • packages/amplify-e2e-tests/package.json
  • packages/amplify-graphql-model-transformer/package.json
  • packages/amplify-graphql-schema-generator/package.json
  • packages/graphql-transformers-e2e-tests/package.json
  • yarn.lock

…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.
@Simone319 Simone319 requested a review from a team as a code owner May 5, 2026 16:22
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants