Raw vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:NSummary
CVE-2026-25896 is a critical-severity Incorrect Regular Expression (CWE-185) vulnerability in Naturalintelligence Fast-Xml-Parser. Its CVSS base score is 9.3 (Critical).
Operationally, exploitation aligns with the MITRE ATT&CK technique Browser Session Hijacking (T1185); ranked at the 38th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.
Deeper analysis AI-assisted summary
Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.
CVE-2026-25896 affects the fast-xml-parser JavaScript library, versions 4.1.3 through 5.3.4, which is used to validate XML, parse XML into JavaScript objects, or build XML from JavaScript objects without C/C++ dependencies or callbacks. The vulnerability arises because a dot (.) character in a DOCTYPE entity name is treated as a regex wildcard during entity replacement, enabling attackers to shadow built-in XML entities such as <, >, &, ", and ' with arbitrary values. This flaw, classified under CWE-185, bypasses standard entity encoding and has a CVSS v3.1 base score of 9.3 (AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N).
An attacker can exploit this vulnerability by supplying malicious XML input containing a crafted DOCTYPE entity with a dot in its name to any application using the affected fast-xml-parser versions for untrusted XML processing. No privileges or user interaction are required, and exploitation occurs over the network with low complexity. Successful exploitation allows the attacker to inject arbitrary content by overriding built-in entities, leading to cross-site scripting (XSS) when the parsed XML output is rendered in a web context, with high integrity impact due to the scope change.
The vulnerability is fixed in fast-xml-parser version 5.3.5, as detailed in the project's GitHub security advisory (GHSA-m7jm-9gc2-mpf2) and release notes. Mitigation involves upgrading to 5.3.5 or later, with relevant patches in commits 943ef0eb1b2d3284e72dd74f44a042ee9f07026e and ddcd0acf26ddd682cb0dc15a2bd6aa3b96bb1e69. Security practitioners should review dependencies in Node.js or browser-based applications handling XML for vulnerable versions.
OWASP Top 10 for Web (2025)
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2026-7529
Vulnerability Data
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…
more
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.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
CVEs Like This One
Affected Assets
Mitigating Controls
Control response
—
—
—
V1.1.2V1.3.2
Mitigating Controls (NIST 800-53 r5) AI
Developer testing and evaluation can discover regex that fails to match or compare data as intended.
Input validation directly enforces neutralization of untrusted data before it reaches web output generation.
Output filtering can catch or sanitize unneutralized script content before it is served to users.
Requiring documented development standards and tools reduces the chance that incorrect regular expressions are written into validation or filtering logic.
An SDLC that incorporates security can embed reviews or tooling that catch malformed regular expressions before deployment.
Mitigating Controls (NIST CSF 2.0) AI
Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.
Secure SDLC practices directly require correct regex design, testing, and review to avoid improper matching.
Patching and EOL replacement can remediate known XSS instances in libraries or frameworks (partial) but do nothing to enforce input neutralization in application code (none).
Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI
Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.
Security testing in development can detect regex-related flaws before release.
Knowledge exchange on emerging attack techniques and patches reduces the likelihood that cross-site scripting flaws remain unaddressed in deployed applications.
Operational indicators of compromise for web-application attacks can be incorporated into WAF or input-filtering rules, lowering the likelihood that unsanitized data reaches the browser.
Secure development lifecycle includes validation of input-handling constructs such as regex.
Application security requirements can mandate correct regex design and testing.
Secure coding standards directly address proper construction and review of regular expressions.