Skip to content

Bundled fast-xml-parser in data-construct and graphql-api-construct causes critical npm audit vulnerabilities #3426

Description

@jpdevrzmz

Description

The latest versions of @aws-amplify/data-construct@1.17.0 and @aws-amplify/graphql-api-construct@1.21.0 bundle fast-xml-parser@4.4.1, which has three known vulnerabilities:

The fix is fast-xml-parser@>=4.5.4.

Because these are bundled dependencies, consumers cannot resolve them via npm overrides or npm audit fix.

Steps to reproduce

mkdir amplify-audit-test && cd amplify-audit-test
npm init -y
npm install @aws-amplify/backend@latest
npm audit

Result

40 vulnerabilities (5 low, 1 moderate, 15 high, 19 critical)

Vulnerable packages found bundled inside data-construct and graphql-api-construct:

Package Bundled Version Fixed Version Severity
fast-xml-parser 4.4.1 >=4.5.4 Critical/High
minimatch 10.0.0–10.2.2 >=10.2.3 High
lodash 4.0.0–4.17.21 >=4.17.22 Moderate
@smithy/config-resolver <4.4.0 >=4.4.0 Low

Expected behavior

Bundled dependencies should be updated to versions without known vulnerabilities. In particular, fast-xml-parser should be updated to >=4.5.4.

Environment

  • @aws-amplify/backend: 1.21.0 (latest as of 2026-03-03)
  • @aws-amplify/data-construct: 1.17.0 (latest)
  • @aws-amplify/graphql-api-construct: 1.21.0 (latest)
  • fast-xml-parser (bundled): 4.4.1
  • npm: 11.x
  • Node: 24.x

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions