CVE-2026-25896: Vulnerability in Naturalintelligence Fast-xml-parser
Critical. 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 (<, >, &, ", ') with arbitrary values. This bypasses entity encoding and leads to XSS when parsed output is rendered.
npm, CWE-185, CWE-79
- Exploitation
- None confirmed
- Severity
- 9.3 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-m7jm-9gc2-mpf2
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N
- Weakness
- CWE-185, CWE-79
- Published
- 20 Feb 2026
- Last change
- 10 Sept 2026
- Ecosystem
- npm
Affected products
Affected versions and the first fixed release
- Naturalintelligence Fast-xml-parser From 4.1.3 before 5.3.5. Fixed in 5.3.5
Affected packages
Vulnerable version ranges and fixed releases
- fast-xml-parser npm, Affected from 5.0.0 before 5.3.5. Fixed in 5.3.5
Advisories
Vendor and security advisories
- github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-m7jm-9gc2-mpf2
- access.redhat.com/errata/RHSA-2026:40984
- access.redhat.com/errata/RHSA-2026:41941
Patches and fixes
Updates, commits and release notes
- github.com/NaturalIntelligence/fast-xml-parser/commit/943ef0eb1b2d3284e72dd74f44a042ee9...
- github.com/NaturalIntelligence/fast-xml-parser/commit/ddcd0acf26ddd682cb0dc15a2bd6aa3b9...
- github.com/NaturalIntelligence/fast-xml-parser/releases/tag/v5.3.5
Related
- Fast-xml-parser vulnerabilities Recent advisories, watch this product