Raw vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:NCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
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 User Execution (T1204); ranked at the 43th 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
MITRE ATT&CK v20.0
CVEs Like This One
Affected Assets
Mitigating Controls
Control response
—
—
—
V1.1.2V1.3.2
Mitigating Controls (NIST 800-53 r5)
Our mappings, made for this CVE.
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)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.
Secure SDLC practices directly target introduction of XSS via coding standards/testing (mostly), yet the single broad outcome leaves many specific neutralization vectors unaddressed (partial).
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)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
Security testing in development can detect regex-related flaws before release.
Training partially blocks XSS exploitation by making users less likely to click on malicious links delivering XSS payloads and by making developers more likely to add some defensive measures, but it does not stop the underlying code defect from being exploitable, consistent with the AT-2 vs CWE-79 blocks=partial calibration anchor.
Secure coding standards directly address proper construction and review of regular expressions.
A.8.8's reach is DISCLOSURE — it sees only instances that carry a vendor-published flaw in third-party components. XSS is overwhelmingly a first-party code defect in custom web applications, which A.8.8's scanning of published advisories and component inventory does not reach; that is A.8.29's territory (SAST/DAST). A.8.8 finds XSS only where it has been published as a CVE in a third-party component (CMS plugins, libraries, etc.), which is a minority of the class.
Hardening callouts derived
DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.
- No fine-grained STIG row for CWE-185, a class-level weakness, and none of its children carries one either.