Fast Xml Parser
CVE-2026-25896
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft XML with DOCTYPE entity containing dot wildcard
-
ExploitShadow built-in XML entities with malicious values
-
ExecutionInject arbitrary HTML/JavaScript payload
-
ImpactExecute XSS in rendered output
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Incorrect input validation
|
| Exploitation Conditions | No special conditions — remote unauthenticated exploitation against fast-xml-parser versions 4.1.3 to before 5.3.5 with default parsing configuration. Requires attacker-controlled XML input processed and rendered in web context. |
| Impact | CVSS 9.3. Denial of service via crafted XML. |
| Exploit ScenarioDerived | Crafted XML triggers catastrophic regex backtracking. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 12, 2026
ReDoS in fast-xml-parser before fix via crafted XML. PoC and patch available.
Earlier versions of this analysis (1)
ReDoS in fast-xml-parser XML library.
RemediationAI
Apply patch.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-185 incorrect regex in XML parsing.
Know when Fast Xml Parser gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
3DescriptionCVE.org
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.
Executive ViewAI
Fast-Xml-Parser versions up to 5.3.5 contain a critical vulnerability (CVSS 9.3) that allows remote attackers to execute arbitrary code through XML processing. This affects any application using the vulnerable library for XML parsing, validation, or building, potentially enabling complete system compromise. Public exploits are available, making this an urgent threat requiring immediate remediation.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Affected Products (CPE)CVE.org
More in Fast Xml Parser
View allFast XML Parser versions 4.1.3 through 5.3.5 are vulnerable to XML entity expansion attacks that allow remote attackers
Fast-xml-parser versions 5.0.9 through 5.3.3 crash when processing XML containing out-of-range numeric entity code point
fast-xml-parser is an open source, pure javascript xml parser. Rated high severity (CVSS 7.5), this vulnerability is rem
fast-xml-parser before 4.1.2 allows __proto__ for Prototype Pollution. Rated medium severity (CVSS 6.5), this vulnerabil
Stack overflow denial of service in fast-xml-parser versions prior to 5.3.8 occurs when the XML builder is used with the
fast-xml-parser is an open source, pure javascript xml parser. Rated high severity (CVSS 7.5), this vulnerability is rem
GHSA-m7jm-9gc2-mpf2
NVD
CVE.org
EPSS
VulDB
Exploit-DB