CVE-2026-25896
Last modified
CVE-2026-25896 is a critical-severity vulnerability rated 9.3/10 on the CVSS scale. 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. EPSS estimates a 0.45% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Naturalintelligence | Fast-Xml-Parser | >= 4.1.3, < 5.3.5 |
References
- https://github.com/NaturalIntelligence/fast-xml-parser/releases/tag/v5.3.5Product, Release Notes
- https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-m7jm-9gc2-mpf2Exploit, Mitigation, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-25896?
How severe is CVE-2026-25896?
How do I fix CVE-2026-25896?
Are you affected by CVE-2026-25896?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
