{"id":"CVE-2026-41650","published":"2026-05-07T13:36:55Z","modified":"2026-05-07T15:08:36Z","title":"fast-xml-parser XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimiters","vendor":"NaturalIntelligence","product":"fast-xml-parser","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00238,"percentile":0.15184,"provenance":"source"},"cwes":[{"id":"CWE-91","name":"XML Injection"}],"references":[{"url":"https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-gh4j-gqv2-49f6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/NaturalIntelligence/fast-xml-parser/releases/tag/v5.6.0","tags":["x_refsource_MISC"]}],"priority":{"score":7.3,"factors":[{"name":"EPSS percentile","points":3.04},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"naturalintelligence","affectedVersions":[{"vendor":"NaturalIntelligence","product":"fast-xml-parser","versions":["< 5.7.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-07T15:08:09.204375Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"fast-xml-parser","vulnerableRanges":[">=5.0.0, <5.7.0","<4.5.7"],"patched":["5.7.0","4.5.7"],"from":["GHSA-gh4j-gqv2-49f6"],"provenance":"source"}],"summary":{"text":"fast-xml-parser's XMLBuilder, the component that generates XML from JavaScript objects, fails to escape the \"-->\" sequence in comment content and the \"]]>\" sequence in CDATA sections. An attacker who can supply data that flows into those comments or CDATA elements, over the network and with no privileges required but with a user needing to interact, can inject XML that may lead to cross-site scripting, SOAP injection, or data manipulation.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:44Z"},"euvd":{"id":"EUVD-2026-28381","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-naturalintelligence-fast-xml-parser-cve-2026-27942","parents":[{"from":"CVE-2026-27942","to":"CVE-2026-41650","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/xmlbuilder/orderedJs2Xml.js"],"commits":["https://github.com/NaturalIntelligence/fast-xml-parser/commit/c13a961910f14986295dd28484eee830fa1a0e8a","https://github.com/NaturalIntelligence/fast-xml-parser/commit/e561c2188607a108a9a8d9b6428902a28aad8fb0"],"basis":"shared function","functions":["arrToStr"]}]}],"children":[{"from":"CVE-2026-41650","to":"CVE-2026-44664","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-45c6-75p6-83cc","via":"reference","url":"https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-gh4j-gqv2-49f6"}]}],"packageHistory":[{"cve":"CVE-2026-27942","published":"2026-02-26","fixed":"5.3.8","kev":false},{"cve":"CVE-2026-33036","published":"2026-03-20","fixed":"5.5.6","kev":false},{"cve":"CVE-2026-33349","published":"2026-03-24","fixed":"5.5.7","kev":false,"link":{"from":"CVE-2026-33349","to":"CVE-2026-41650","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:fast-xml-parser","fromFixed":"5.5.7","toFixed":"5.7.0","daysApart":44},{"kind":"version-step","provenance":"source","package":"npm:fast-xml-parser","fromFixed":"4.5.5","toFixed":"4.5.7","daysApart":44}]}},{"cve":"CVE-2026-41650","published":"2026-05-07","fixed":"5.7.0","kev":false},{"cve":"CVE-2026-73569","published":"2026-08-13","fixed":"5.10.1","kev":false},{"cve":"CVE-2026-126066","published":"2026-11-10","fixed":"5.12.0","kev":false}],"package":"npm:fast-xml-parser"}}