{"id":"CVE-2026-25896","published":"2026-02-20T20:57:48Z","modified":"2026-09-10T12:04:52Z","title":"fast-xml-parser has an entity encoding bypass via regex injection in DOCTYPE entity names","vendor":"NaturalIntelligence","product":"fast-xml-parser","tier":"tail","description":{"text":"fast-xml-parser allows users to validate XML, parse XML to JS object, or build XML from JS object without C/C++ based libraries and no callback. From 4.1.3to before 5.3.5, a dot (.) in a DOCTYPE entity name is treated as a regex wildcard during entity replacement, allowing an attacker to shadow built-in XML entities (&lt;, &gt;, &amp;, &quot;, &apos;) with arbitrary values. This bypasses entity encoding and leads to XSS when parsed output is rendered. This vulnerability is fixed in 5.3.5.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.3,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0052,"percentile":0.45065,"provenance":"source"},"cwes":[{"id":"CWE-185","name":"Incorrect Regular Expression"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-m7jm-9gc2-mpf2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/NaturalIntelligence/fast-xml-parser/commit/943ef0eb1b2d3284e72dd74f44a042ee9f07026e","tags":["x_refsource_MISC"]},{"url":"https://github.com/NaturalIntelligence/fast-xml-parser/commit/ddcd0acf26ddd682cb0dc15a2bd6aa3b96bb1e69","tags":["x_refsource_MISC"]},{"url":"https://github.com/NaturalIntelligence/fast-xml-parser/releases/tag/v5.3.5","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-25896","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2441501","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25896.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:7110","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:7128","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:6174","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:6802","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:41941","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:41944","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:40984","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:51349","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":9.01},{"name":"CVSS severity","points":6.51}]},"vendorSlug":"naturalintelligence","affectedVersions":[{"vendor":"NaturalIntelligence","product":"fast-xml-parser","versions":[">= 5.0.0, < 5.3.5",">= 4.1.3, < 4.5.4"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-02-23T19:26:46.154155Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"fast-xml-parser","vulnerableRanges":[">=5.0.0, <5.3.5",">=4.1.3, <4.5.4"],"patched":["5.3.5","4.5.4"],"from":["GHSA-m7jm-9gc2-mpf2"],"provenance":"source"}],"summary":{"text":"The fast-xml-parser library (NaturalIntelligence), in versions 4.1.3 up to but not including 5.3.5, treats a dot in a DOCTYPE entity name as a regex wildcard during entity replacement, so crafted entity names can shadow the built-in XML entities such as &lt;, &gt;, &amp;, &quot; and &apos;. An attacker who can supply XML for the parser to process, with no authentication or special configuration required, can use this to bypass entity encoding and inject script that becomes cross-site scripting when the parsed output is rendered in a web page.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:21:09Z"},"euvd":{"id":"EUVD-2026-7529","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-naturalintelligence-fast-xml-parser-cve-2021-26920","children":[{"from":"CVE-2026-25896","to":"CVE-2026-26278","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:fast-xml-parser","fromFixed":"5.3.5","toFixed":"5.3.6","daysApart":-1},{"kind":"same-code","provenance":"machine","files":["src/xmlparser/DocTypeReader.js"],"commits":["https://github.com/NaturalIntelligence/fast-xml-parser/commit/943ef0eb1b2d3284e72dd74f44a042ee9f07026e","https://github.com/NaturalIntelligence/fast-xml-parser/commit/ddcd0acf26ddd682cb0dc15a2bd6aa3b96bb1e69","https://github.com/NaturalIntelligence/fast-xml-parser/commit/910dae5be2de2955e968558fadf6e8f74f117a77"],"basis":"shared function","functions":["DocTypeReader"]}]},{"from":"CVE-2026-25896","to":"CVE-2026-33349","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/xmlparser/DocTypeReader.js"],"commits":["https://github.com/NaturalIntelligence/fast-xml-parser/commit/943ef0eb1b2d3284e72dd74f44a042ee9f07026e","https://github.com/NaturalIntelligence/fast-xml-parser/commit/ddcd0acf26ddd682cb0dc15a2bd6aa3b96bb1e69","https://github.com/NaturalIntelligence/fast-xml-parser/commit/239b64aa1fc5c5455ddebbbb54a187eb68c9fdb7","https://github.com/NaturalIntelligence/fast-xml-parser/commit/88d0936a23dabe51bfbf42255e2ce912dfee2221"],"basis":"shared function","functions":["DocTypeReader"]}]}],"packageHistory":[{"cve":"CVE-2023-34104","published":"2023-06-06","fixed":"4.2.4","kev":false},{"cve":"CVE-2024-41818","published":"2024-07-29","fixed":"4.4.1","kev":false,"link":{"from":"CVE-2024-41818","to":"CVE-2026-25896","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:fast-xml-parser","fromFixed":"4.4.1","toFixed":"4.5.4","daysApart":571}]}},{"cve":"CVE-2026-25128","published":"2026-01-30","fixed":"5.3.4","kev":false,"link":{"from":"CVE-2026-25128","to":"CVE-2026-25896","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:fast-xml-parser","fromFixed":"5.3.4","toFixed":"5.3.5","daysApart":21},{"kind":"same-code","provenance":"machine","files":["src/xmlparser/OrderedObjParser.js"],"commits":["https://github.com/NaturalIntelligence/fast-xml-parser/commit/4e387f61c4a5cef792f6a2f42467013290bf95dc","https://github.com/NaturalIntelligence/fast-xml-parser/commit/943ef0eb1b2d3284e72dd74f44a042ee9f07026e","https://github.com/NaturalIntelligence/fast-xml-parser/commit/ddcd0acf26ddd682cb0dc15a2bd6aa3b96bb1e69"],"basis":"shared file"}]}},{"cve":"CVE-2026-25896","published":"2026-02-20","fixed":"5.3.5","kev":false},{"cve":"CVE-2026-26278","published":"2026-02-19","fixed":"5.3.6","kev":false},{"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}],"package":"npm:fast-xml-parser"}}