Vulnerability
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. 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.
37 advisories report this vulnerability, across 5 ecosystems.
Advisories
- CGA-263h-48qc-2339
- CGA-2x2m-6m6j-crqg
- CGA-3466-464j-5qq3
- CGA-3489-pph8-5jm3
- CGA-3qf9-89cq-hhqp
- CGA-3v3m-9894-pm8f
- CGA-43f8-677j-xc8x
- CGA-4mqx-mj48-qj6v
- CGA-53pq-9664-jm46
- CGA-5fw3-mh2c-qf28
- CGA-6cjf-4jrh-c492
- CGA-789q-6vh9-j235
- CGA-882q-32vc-x6vc
- CGA-9j3j-fvhw-r69x
- CGA-9vmw-p2ch-cxxm
- CGA-c9xp-56xh-7q64
- CGA-fpwc-4qfp-pf72
- CGA-gw48-ggqr-8f3x
- CGA-h56m-m393-6qr2
- CGA-hmwf-p668-mrp3
- CGA-hvm6-93q6-qq2q
- CGA-jhvv-8x42-jvmv
- CGA-m24v-vxrr-x56j
- CGA-m4p6-6qcj-p598
- CGA-m9vp-gg5v-chwp
- CGA-p76w-8x8j-c67j
- CGA-pfvx-r43h-3g66
- CGA-pgvj-fqgp-gfhr
- CGA-v742-5mp7-rjq9
- CGA-vh8r-hwr4-pw24
- CGA-vqh3-9m47-3cq7
- CGA-x5cc-8773-8fmp
- CGA-xcjj-rpqh-h44p
- CGA-xrc6-36v4-j22h
-
DEBIAN-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. From 4.1.3to before 5.3.5, a dot (.) in a DOCTYPE entity name is treated…
-
GHSA-m7jm-9gc2-mpf2
fast-xml-parser has an entity encoding bypass via regex injection in DOCTYPE entity names
-
UBUNTU-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. From 4.1.3to before 5.3.5, a dot (.) in a DOCTYPE entity name is treated…
References
- https://github.com/NaturalIntelligence/fast-xml-parser/commit/943ef0eb1b2d3284e72dd74f44a042ee9f07026e
- https://github.com/NaturalIntelligence/fast-xml-parser/commit/ddcd0acf26ddd682cb0dc15a2bd6aa3b96bb1e69
- https://github.com/NaturalIntelligence/fast-xml-parser/releases/tag/v5.3.5
- https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-m7jm-9gc2-mpf2
- https://access.redhat.com/errata/RHSA-2026:40984
- https://access.redhat.com/errata/RHSA-2026:41941
- https://access.redhat.com/errata/RHSA-2026:41944
- https://access.redhat.com/errata/RHSA-2026:51349
- https://access.redhat.com/errata/RHSA-2026:6174
- https://access.redhat.com/errata/RHSA-2026:6802
- https://access.redhat.com/errata/RHSA-2026:7110
- https://access.redhat.com/errata/RHSA-2026:7128
- https://access.redhat.com/security/cve/CVE-2026-25896
- https://bugzilla.redhat.com/show_bug.cgi?id=2441501
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25896.json