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

Patches and fixes

Updates, commits and release notes

Related