CVE-2026-25896

Source
https://cve.org/CVERecord?id=CVE-2026-25896
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-25896.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-25896
Aliases
Downstream
Related
Published
2026-02-20T20:57:48.074Z
Modified
2026-02-24T02:37:09.424847Z
Severity
  • 9.3 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N CVSS Calculator
Summary
fast-xml-parser has an entity encoding bypass via regex injection in DOCTYPE entity names
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-185"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25896.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/naturalintelligence/fast-xml-parser

Affected ranges

Type
GIT
Repo
https://github.com/naturalintelligence/fast-xml-parser
Events

Affected versions

v4.*
v4.1.3
v4.1.4
v4.2.0
v4.2.3
v4.2.4
v4.2.5
v4.2.6
v4.2.7
v4.3.0
v4.3.1
v4.3.2
v4.3.3
v4.3.4
v4.3.5
v4.3.6
v4.4.0
v4.4.1
v4.5.0
v4.5.1
v4.5.2
v5.*
v5.0.0
v5.0.2
v5.0.4
v5.0.6
v5.0.7
v5.0.9
v5.1.0
v5.2.0
v5.2.1
v5.2.2
v5.2.3
v5.2.5
v5.3.0
v5.3.1
v5.3.2
v5.3.3
v5.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-25896.json"