CVE-2026-41650
MEDIUM 6.1CVSS 3.1fast-xml-parser XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimiters
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.
- Published
- 7 May 2026
- Last modified
- 18 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-91
- Also known as
- GHSA-gh4j-gqv2-49f6
- Sources
- NVDJSONOSV GHSA-gh4j-gqv2-49f6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | 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 |
| OSV | GitHub | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | naturalintelligence | fast-xml-parsercpe:2.3:a:naturalintelligence:fast-xml-parser:*:*:*:*:*:*:*:* |
< 5.7.0 | 5.7.0 |
| OSV | npm | fast-xml-parser | >= 5.0.0, < 5.7.0 | 5.7.0 |
| OSV | npm | fast-xml-parser | < 4.5.7 | 4.5.7 |
References
- https://github.com/NaturalIntelligence/fast-xml-parser/releases/tag/v5.6.0 · Product, Release Notes, WEB
- https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-gh4j-gqv2-49f6 · Exploit, Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-41650 · ADVISORY
- https://github.com/NaturalIntelligence/fast-xml-parser/commit/e561c2188607a108a9a8d9b6428902a28aad8fb0 · WEB
- https://github.com/NaturalIntelligence/fast-xml-parser · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 7 May 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 22 Apr 2026)