CVE-2026-25896
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.
How to fix
- naturalintelligence fast-xml-parser5.3.5 or later
- fast-xml-parser5.3.5, 4.5.4 or later
- access.redhat.com/errata/RHSA-2026:7110
- access.redhat.com/errata/RHSA-2026:7128
- access.redhat.com/errata/RHSA-2026:6174
- access.redhat.com/errata/RHSA-2026:6802
- access.redhat.com/errata/RHSA-2026:41941
- access.redhat.com/errata/RHSA-2026:41944
- access.redhat.com/errata/RHSA-2026:40984
- access.redhat.com/errata/RHSA-2026:51349
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| naturalintelligence fast-xml-parser | 4.1.3 ≤ v < 5.3.5 | 5.3.5 |
| fast-xml-parsernpm | 5.0.0 ≤ v < 5.3.5, 4.1.3 ≤ v < 4.5.4 | 5.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.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.