Skip to content

chore(deps): bump fast-xml-parser to patch XMLBuilder injection vulnerability#13521

Merged
czubocha merged 1 commit into
mainfrom
fix/fast-xml-parser-vuln
Apr 29, 2026
Merged

chore(deps): bump fast-xml-parser to patch XMLBuilder injection vulnerability#13521
czubocha merged 1 commit into
mainfrom
fix/fast-xml-parser-vuln

Conversation

@czubocha
Copy link
Copy Markdown
Contributor

Summary

Patches GHSA-gh4j-gqv2-49f6 (moderate, CVSS 6.1) — fast-xml-parser XMLBuilder is vulnerable to XML comment and CDATA injection via unescaped delimiters in versions <5.7.0.

The vulnerable package is pulled in transitively via @aws-sdk/xml-builder. Fix is applied to the root lockfile and to 12 bedrock-agentcore JavaScript example lockfiles.

Changes

Lockfile-only patches (no package.json changes, no Node engine bumps):

  • @aws-sdk/xml-builder: 3.972.x3.972.19
  • @smithy/types: 4.13.14.14.1
  • fast-xml-parser: 5.5.85.7.1 (pinned by @aws-sdk/xml-builder@3.972.19)
  • fast-xml-builder: 1.1.41.1.5
  • path-expression-matcher: 1.x1.5.0
  • strnum: 2.2.x2.2.3
  • New transitive: @nodable/entities@2.1.0

All bumps are semver-compatible with existing dependency ranges. Versions chosen comply with the project's min-release-age=3 policy.

Affected lockfiles

  • package-lock.json (root)
  • 12 examples under packages/serverless/lib/plugins/aws/bedrock-agentcore/examples/javascript/:
    langgraph-basic, langgraph-basic-dockerfile, langgraph-browser, langgraph-browser-custom, langgraph-code-interpreter, langgraph-code-interpreter-custom, langgraph-comprehensive, langgraph-gateway, langgraph-memory, langgraph-multi-gateway, langgraph-streaming, strands-browser

Test plan

  • npm ci succeeds for the root package and every patched example
  • npm audit signatures cryptographically verifies versions and integrity hashes against the npm registry for every entry
  • npm audit reports zero fast-xml-parser references across the root and all examples
  • No package.json modifications and no Node engine changes

…rability

Patches GHSA-gh4j-gqv2-49f6 (moderate) by bumping fast-xml-parser from
5.5.8 to 5.7.1 in the root lockfile and in 12 bedrock-agentcore JavaScript
example lockfiles. Also bumps the @aws-sdk/xml-builder parent (3.972.x to
3.972.19) and @smithy/types (4.13.1 to 4.14.1) to satisfy the new
fast-xml-parser pin. All semver-compatible with existing ranges.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 28, 2026

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (13)
  • package-lock.json is excluded by !**/package-lock.json
  • packages/serverless/lib/plugins/aws/bedrock-agentcore/examples/javascript/langgraph-basic-dockerfile/package-lock.json is excluded by !**/package-lock.json
  • packages/serverless/lib/plugins/aws/bedrock-agentcore/examples/javascript/langgraph-basic/package-lock.json is excluded by !**/package-lock.json
  • packages/serverless/lib/plugins/aws/bedrock-agentcore/examples/javascript/langgraph-browser-custom/package-lock.json is excluded by !**/package-lock.json
  • packages/serverless/lib/plugins/aws/bedrock-agentcore/examples/javascript/langgraph-browser/package-lock.json is excluded by !**/package-lock.json
  • packages/serverless/lib/plugins/aws/bedrock-agentcore/examples/javascript/langgraph-code-interpreter-custom/package-lock.json is excluded by !**/package-lock.json
  • packages/serverless/lib/plugins/aws/bedrock-agentcore/examples/javascript/langgraph-code-interpreter/package-lock.json is excluded by !**/package-lock.json
  • packages/serverless/lib/plugins/aws/bedrock-agentcore/examples/javascript/langgraph-comprehensive/package-lock.json is excluded by !**/package-lock.json
  • packages/serverless/lib/plugins/aws/bedrock-agentcore/examples/javascript/langgraph-gateway/package-lock.json is excluded by !**/package-lock.json
  • packages/serverless/lib/plugins/aws/bedrock-agentcore/examples/javascript/langgraph-memory/package-lock.json is excluded by !**/package-lock.json
  • packages/serverless/lib/plugins/aws/bedrock-agentcore/examples/javascript/langgraph-multi-gateway/package-lock.json is excluded by !**/package-lock.json
  • packages/serverless/lib/plugins/aws/bedrock-agentcore/examples/javascript/langgraph-streaming/package-lock.json is excluded by !**/package-lock.json
  • packages/serverless/lib/plugins/aws/bedrock-agentcore/examples/javascript/strands-browser/package-lock.json is excluded by !**/package-lock.json

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 35ca0197-a7b3-4765-b16e-67352eab7a95

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/fast-xml-parser-vuln

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Mmarzex
Copy link
Copy Markdown
Contributor

Mmarzex commented Apr 28, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@czubocha czubocha merged commit e87e8a6 into main Apr 29, 2026
14 of 15 checks passed
@czubocha czubocha deleted the fix/fast-xml-parser-vuln branch April 29, 2026 07:51
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants