CVE-2026-25896CWE-185CWE-79cross-site-scripting

CVE-2026-25896

Critical · published February 21, 2026

CVSS v3.1
9.3
EPSS
1%
Percentile
46.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
9.3 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00571 · 46.5th percentile
Weaknesses
CWE-185 · Incorrect Regular Expression; CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2026-02-21T02:19Z
Affected products (1)
ProductVersionsFixed in
naturalintelligence/fast-xml-parser≥ 4.1.3, < 5.3.55.3.5
References (15)
EPSS history
Timeline
  • 20 FEB 20:57Z
    fast-xml-parser has an entity encoding bypass via regex injection in DOCTYPE entity names
    cvelistv5