fast-xml-parser XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimiters
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in fast-xml-parser 4.5.7 and fast-xml-parser 5.7.0.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| NaturalIntelligence | <5.7.0 | ||
| npm: fast-xml-parser | <4.5.7, >=5.0.0 <5.7.0 | 4.5.7, 5.7.0 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in fast-xml-parser (npm), strongest first
Embed
A live severity badge for an advisory, README or ticket