fast-xml-parser

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

5.12.1Latest, 13 Nov 2026
494MDownloads, last month
0Advisories on the latest
14Advisories, all versions
MITLicence
3.1KStars
8.6/10OpenSSF Scorecard

Known advisories

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

On Hacker News

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