CVE-2026-25896
published 2026-02-20CVE-2026-25896: 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…
PriorityP356critical9.3CVSS 3.1
AVNACLPRNUINSCCLIHAN
EPSS
0.46%
37.6th percentile
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.
Affected
7 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | node-webfont | — | — |
| naturalintelligence | fast-xml-parser | — | — |
| naturalintelligence | fast-xml-parser | — | — |
| naturalintelligence | fast-xml-parser | >= 0 < 5.7.0 | 5.7.0 |
| naturalintelligence | fast-xml-parser | >= 4.1.3 < 5.3.5 | 5.3.5 |
| naturalintelligence | fast-xml-parser | >= 4.1.3 < 4.5.4 | 4.5.4 |
| naturalintelligence | fast-xml-parser | >= 5.0.0 < 5.3.5 | 5.3.5 |
CVSS provenance
nvdv3.19.3CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N
ghsa7.5HIGH
osv9.3CRITICAL
vendor_debian9.3CRITICAL
vendor_redhat9.3CRITICAL
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
fast-xml-parser: fast-xml-parser: Cross-Site Scripting (XSS) due to improper DOCTYPE entity handling
vendor_redhat·2026-02-20·CVSS 9.3
CVE-2026-25896 [CRITICAL] CWE-79 fast-xml-parser: fast-xml-parser: Cross-Site Scripting (XSS) due to improper DOCTYPE entity handling
fast-xml-parser: fast-xml-parser: Cross-Site Scripting (XSS) due to improper DOCTYPE entity handling
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.
A flaw was found in fast-xml-parser. A remote attacker can exploit this vulnerability by providing a specially crafted XML input. The system incorrectly interprets a dot in a DOCTYPE entity name as a regular expression wildcar
Debian
CVE-2026-25896: node-webfont - fast-xml-parser allows users to validate XML, parse XML to JS object, or build X...
vendor_debian·2026·CVSS 9.3
CVE-2026-25896 [CRITICAL] CVE-2026-25896: node-webfont - fast-xml-parser allows users to validate XML, parse XML to JS object, or build X...
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.
Scope: local
bookworm: undetermined
forky: undetermined
sid: undetermined
trixie: undetermined
GHSA
fast-xml-parser XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimiters
ghsa·2026-04-22·CVSS 6.5
CVE-2026-41650 [MEDIUM] CWE-91 fast-xml-parser XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimiters
fast-xml-parser XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimiters
# fast-xml-parser XMLBuilder: Comment and CDATA Injection via Unescaped Delimiters
## Summary
fast-xml-parser XMLBuilder does not escape the `-->` sequence in comment content or the `]]>` sequence in CDATA sections when building XML from JavaScript objects. This allows XML injection when user-controlled data flows into comments or CDATA elements, leading to XSS, SOAP injection, or data manipulation.
Existing CVEs for fast-xml-parser cover different issues:
- CVE-2023-26920: Prototype pollution (parser)
- CVE-2023-34104: ReDoS (parser)
- CVE-2026-27942: Stack overflow in XMLBuilder with preserveOrder
- CVE-2026-25896: Entity encoding bypass via regex in DOCTYPE entities
This finding covers **unescaped
GHSA
fast-xml-parser has an entity encoding bypass via regex injection in DOCTYPE entity names
ghsa·2026-02-20·CVSS 7.5
CVE-2026-25896 [HIGH] CWE-185 fast-xml-parser has an entity encoding bypass via regex injection in DOCTYPE entity names
fast-xml-parser has an entity encoding bypass via regex injection in DOCTYPE entity names
# Entity encoding bypass via regex injection in DOCTYPE entity names
## Summary
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.
## Details
The fix for CVE-2023-34104 addressed some regex metacharacters in entity names but missed `.` (period), which is valid in XML names per the W3C spec.
In `DocTypeReader.js`, entity names are passed directly to `RegExp()`:
```js
entities[entityName] = {
regx: RegExp(`&${entityName};`, "g"),
val: val
};
```
An entity named `l.` produces the
OSV
fast-xml-parser has an entity encoding bypass via regex injection in DOCTYPE entity names
osv·2026-02-20·CVSS 7.5
CVE-2026-25896 [HIGH] fast-xml-parser has an entity encoding bypass via regex injection in DOCTYPE entity names
fast-xml-parser has an entity encoding bypass via regex injection in DOCTYPE entity names
# Entity encoding bypass via regex injection in DOCTYPE entity names
## Summary
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.
## Details
The fix for CVE-2023-34104 addressed some regex metacharacters in entity names but missed `.` (period), which is valid in XML names per the W3C spec.
In `DocTypeReader.js`, entity names are passed directly to `RegExp()`:
```js
entities[entityName] = {
regx: RegExp(`&${entityName};`, "g"),
val: val
};
```
An entity named `l.` produces the
OSV
CVE-2026-25896: 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
osv·2026-02-20·CVSS 9.3
CVE-2026-25896 [CRITICAL] CVE-2026-25896: 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
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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2026-25896 fast-xml-parser: fast-xml-parser: Cross-Site Scripting (XSS) due to improper DOCTYPE entity handling
bugzilla·2026-02-20·CVSS 9.3
CVE-2026-25896 [CRITICAL] CVE-2026-25896 fast-xml-parser: fast-xml-parser: Cross-Site Scripting (XSS) due to improper DOCTYPE entity handling
CVE-2026-25896 fast-xml-parser: fast-xml-parser: Cross-Site Scripting (XSS) due to improper DOCTYPE entity handling
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.
Bugzilla
CVE-2026-25896 h3: fast-xml-parser: Cross-Site Scripting (XSS) due to improper DOCTYPE entity handling [fedora-42]
bugzilla·2026-02-20·CVSS 9.3
CVE-2026-25896 [CRITICAL] CVE-2026-25896 h3: fast-xml-parser: Cross-Site Scripting (XSS) due to improper DOCTYPE entity handling [fedora-42]
CVE-2026-25896 h3: fast-xml-parser: Cross-Site Scripting (XSS) due to improper DOCTYPE entity handling [fedora-42]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
Discussion:
This message is a reminder that Fedora Linux 42 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 42 on 2026-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '42'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently ma
Wiz
CVE-2026-25896 Impact, Exploitability, and Mitigation Steps | Wiz
blogs_wiz·CVSS 9.3
CVE-2026-25896 [CRITICAL] CVE-2026-25896 Impact, Exploitability, and Mitigation Steps | Wiz
## CVE-2026-25896 :
JavaScript vulnerability analysis and mitigation
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.
Wiz Threat Research note: This vulnerability's initial access potential has been overridden to FALSE by the Wiz Research team, as it is an XSS vulnerability and therefore does not allow access to the host.
Source : NVD
## 9.3
Score
Published February 2
https://github.com/NaturalIntelligence/fast-xml-parser/commit/943ef0eb1b2d3284e72dd74f44a042ee9f07026ehttps://github.com/NaturalIntelligence/fast-xml-parser/commit/ddcd0acf26ddd682cb0dc15a2bd6aa3b96bb1e69https://github.com/NaturalIntelligence/fast-xml-parser/releases/tag/v5.3.5https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-m7jm-9gc2-mpf2https://access.redhat.com/errata/RHSA-2026:40984https://access.redhat.com/errata/RHSA-2026:41941https://access.redhat.com/errata/RHSA-2026:41944https://access.redhat.com/errata/RHSA-2026:6174https://access.redhat.com/errata/RHSA-2026:6802https://access.redhat.com/errata/RHSA-2026:7110https://access.redhat.com/errata/RHSA-2026:7128https://access.redhat.com/security/cve/CVE-2026-25896https://bugzilla.redhat.com/show_bug.cgi?id=2441501https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25896.json
2026-02-20
Published