Skip to content

Commit 3b9e5ad

Browse files
fix(security): bump fast-xml-parser past XMLBuilder injection (Dependabot #30) (#208)
Upstream advisory GHSA-gh4j-gqv2-49f6 (CWE-91, XML Injection): the XMLBuilder in fast-xml-parser < 5.7.0 fails to escape XML comment and CDATA section delimiters, allowing a caller to inject `-->` or `]]>` into untrusted input and break out of a comment/CDATA context when serializing. Severity: MODERATE. fast-xml-parser is a transitive dev dependency reaching us via @aws-sdk/xml-builder (devDep of @aws-sdk/client-bedrock-runtime), which pinned it at exact 5.5.8. Added an `overrides` entry pinning fast-xml-parser to ^5.7.0; npm now resolves it to 5.7.2 across the tree. - npm audit: 0 vulnerabilities - npm test: 884 passing (28 suites), 0 failures Refs: https://github.com/getaxonflow/axonflow-sdk-typescript/security/dependabot/30 Advisory: GHSA-gh4j-gqv2-49f6
1 parent 35c7a68 commit 3b9e5ad

2 files changed

Lines changed: 32 additions & 15 deletions

File tree

package-lock.json

Lines changed: 29 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@
8181
"dependencies": {
8282
"openai": "^6.15.0"
8383
},
84+
"overrides": {
85+
"fast-xml-parser": "^5.7.0"
86+
},
8487
"publishConfig": {
8588
"access": "public",
8689
"provenance": true

0 commit comments

Comments
 (0)