# fast-xml-parser (npm)

Validate XML, Parse XML, Build XML without C/C++ based libraries

- Latest: 5.12.1 (2026-11-13)
- Licence: MIT
- Downloads: 493541240 last month
- Advisories on the latest version: 0

- CVE-2026-141469 MODERATE: fast-xml-parser: Quadratic-time (ReDoS-class) denial of service in XMLValidator attribute scanner, default options Fixed in 5.12.1.
- CVE-2026-126066 LOW: fast-xml-parser: Quadratic CPU consumption scanning unterminated stop-node tags Fixed in 5.12.0.
- CVE-2026-73569 HIGH: fast-xml-parser: Repeated DOCTYPE declarations reset entity expansion limits Fixed in 5.10.1.
- CVE-2026-41650 MODERATE: fast-xml-parser XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimiters Fixed in 5.7.0, 4.5.7.
- CVE-2026-33349 MODERATE: Entity Expansion Limits Bypassed When Set to Zero Due to JavaScript Falsy Evaluation in fast-xml-parser Fixed in 4.5.5, 5.5.7.
- CVE-2026-33036 HIGH: fast-xml-parser affected by numeric entity expansion bypassing all entity expansion limits (incomplete fix for CVE-2026-26278) Fixed in 5.5.6, 4.5.5.
- CVE-2026-27942 LOW: fast-xml-parser has stack overflow in XMLBuilder with preserveOrder Fixed in 5.3.8, 4.5.4.
- CVE-2026-25896 CRITICAL: fast-xml-parser has an entity encoding bypass via regex injection in DOCTYPE entity names Fixed in 5.3.5, 4.5.4.
- CVE-2026-26278 HIGH: fast-xml-parser affected by DoS through entity expansion in DOCTYPE (no expansion limit) Fixed in 4.5.4, 5.3.6.
- CVE-2026-25128 HIGH: fast-xml-parser has RangeError DoS Numeric Entities Bug Fixed in 5.3.4.
- CVE-2024-41818 HIGH: fast-xml-parser vulnerable to ReDOS at currency parsing Fixed in 4.4.1.
- GHSA-gpv5-7x3g-ghjv LOW: fast-xml-parser regex vulnerability patch could be improved from a safety perspective Fixed in 4.2.5.
- CVE-2021-26920 MODERATE: fast-xml-parser vulnerable to Prototype Pollution through tag or attribute name Fixed in 4.1.2.
- CVE-2023-34104 HIGH: fast-xml-parser vulnerable to Regex Injection via Doctype Entities Fixed in 4.2.4.

Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.
