fast-xml-parser XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimiters (NaturalIntelligence fast-xml-parser)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.24 % Β· percentile 15 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Analyzed
Description
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.
Weaknesses (CWE)
- CWE-91 β XML Injection
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | GitHub_M |
| CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | NVD Β· security-advisories@github.com (Secondary) |
Advisories
- GHSA-gh4j-gqv2-49f6 β fast-xml-parser XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimiters
European references
- ENISA EUVD Β· EUVD-2026-28381
- GCVE Β· GCVE-0-2026-41650
Affected configurations (NVD CPE)
cpe:2.3:a:naturalintelligence:fast-xml-parser:*:*:*:*:*:*:*:*< 5.7.0
Affected products
| Product | Versions |
|---|---|
| NaturalIntelligence Β· fast-xml-parser | affected < 5.7.0 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST β attribution requested |
| ENISA EUVD | ENISA β reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain β this product uses data from the NVD API but is not endorsed or certified by the NVD |