CVE-2026-25896

Critical

Description

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 (<, >, &, ", ') with arbitrary values. This bypasses entity encoding and leads to XSS when parsed output is rendered. This vulnerability is fixed in 5.3.5.

SeverityCritical
CVSS9.3
Exploit probability—
ProductNaturalintelligence Fast-xml-parser
PublishedFeb 20, 2026
First seenFeb 20, 2026
Weakness typeCWE-185CWE-185

How to fix

Affected products

ProductAffected versionsFixed in
naturalintelligence fast-xml-parser4.1.3 ≤ v < 5.3.55.3.5
fast-xml-parsernpm5.0.0 ≤ v < 5.3.5, 4.1.3 ≤ v < 4.5.45.3.5, 4.5.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.