fast-xml-parser allows users to process XML from JS object without C/C++ based libraries or callbacks. Prior to version 5.7.0, XMLBuilder does not escape the "-->" sequence in comment content or the "]]>" sequence in CDATA sections when building XML from JavaScript objects. This allows XML injection when user-controlled data flows into comments or CDATA elements, leading to XSS, SOAP injection, or data manipulation. This issue has been patched in version 5.7.0.
Fix
Patch, vendor advisory and mitigation references on NVD 2
- https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-gh4j-gqv2-49f6 Exploit, Mitigation, Vendor Advisory
- https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-gh4j-gqv2-49f6 Exploit, Mitigation, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 6.1 · naturalintelligenceNVD modified 2026-10-26 20:10
Affected (CPE criteria) 1
cpe:2.3:a:naturalintelligence:fast-xml-parser:*:*:*:*:*:*:*:*
References 3
- https://github.com/NaturalIntelligence/fast-xml-parser/releases/tag/v5.6.0 Product, Release Notes
- https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-gh4j-gqv2-49f6 Exploit, Mitigation, Vendor Advisory
- https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-gh4j-gqv2-49f6 Exploit, Mitigation, Vendor Advisory