Vulnerability · Published Feb 20, 2026 · Assigned by GitHub_M
CVE-2026-25896fast-xml-parser has an entity encoding bypass via regex injection in DOCTYPE entity names
Critical 9.3
In plain English
A critical-severity cross-site scripting in fast-xml-parser from NaturalIntelligence. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 45% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-webfont | no fix listed | DEBIAN-CVE-2026-25896 |
| Debian:13 | node-webfont | no fix listed | DEBIAN-CVE-2026-25896 |
| Debian:14 | node-webfont | no fix listed | DEBIAN-CVE-2026-25896 |
| Ubuntu:24.04:LTS | node-webfont | no fix listed | UBUNTU-CVE-2026-25896 |
| Ubuntu:25.10 | node-webfont | no fix listed | UBUNTU-CVE-2026-25896 |
| Ubuntu:26.04:LTS | node-webfont | no fix listed | UBUNTU-CVE-2026-25896 |
| Ubuntu:26.10 | node-webfont | no fix listed | UBUNTU-CVE-2026-25896 |
| npm | fast-xml-parser | 4.5.4 | GHSA-m7jm-9gc2-mpf2 |
| npm | fast-xml-parser | 5.3.5 | GHSA-m7jm-9gc2-mpf2 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| NaturalIntelligence | fast-xml-parser | >= 5.0.0, < 5.3.5>= 4.1.3, < 4.5.4 |
Weakness: CWE-185, CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N
References
- https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-m7jm-9gc2-mpf2 x_refsource_CONFIRM
- https://github.com/NaturalIntelligence/fast-xml-parser/commit/943ef0eb1b2d3284e72dd74f44a042ee9f07026e x_refsource_MISC
- https://github.com/NaturalIntelligence/fast-xml-parser/commit/ddcd0acf26ddd682cb0dc15a2bd6aa3b96bb1e69 x_refsource_MISC
- https://github.com/NaturalIntelligence/fast-xml-parser/releases/tag/v5.3.5 x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2026-25896 vdb-entry, x_refsource_REDHAT
- RHBZ#2441501 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25896.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:7110 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:7128 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:6174 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:6802 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:41941 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:41944 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:40984 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:51349 vendor-advisory, x_refsource_REDHAT