CVE-2026-141469: fast-xml-parser: quadratic-time (ReDoS-class) denial of service in XMLValidator attribute scanner, default options

Published Dec 1, 2026
·
Updated

fast-xml-parser allows users to process XML from JS object without C/C++ based libraries or callbacks. Prior to version 5.12.1, scanAttributeTokens in src/validator.js resets its cursor to one position after the token start when a leading-whitespace run ends in a stray equals sign. Each loop iteration rescans most of the remaining whitespace, producing quadratic processing time for attacker-controlled XML. The default path is reachable through XMLValidator.validate(xml) and through new XMLParser().parse(xml, true) when validation is enabled, allowing a document of a few hundred kilobytes to block the Node.js event loop for tens of seconds and deny service. This issue affects availability only. This issue is fixed in version 5.12.1.

Affected Software

1 affected component
npm/fast-xml-parser<5.12.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/fast-xml-parser to a version that resolves this vulnerability.

    Fixed in 5.12.1

Event History

Dec 1, 2026
CVE Published
via MITRE·08:22 PM
Data Sourced
via MITRE·08:22 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed to this denial-of-service condition?

Applications using fast-xml-parser versions before 5.12.1 are exposed when they validate attacker-controlled XML through XMLValidator.validate(xml) or enable validation with new XMLParser().parse(xml, true). The affected behavior is reachable with default options.

2

What must an attacker provide to trigger the issue?

An attacker needs to supply crafted XML containing a leading-whitespace run followed by a stray equals sign in the attribute scanner. No authentication or user interaction is required according to the supplied vector.

3

What is the operational impact?

Processing a document of a few hundred kilobytes can block the Node.js event loop for tens of seconds because the scanner performs quadratic rescanning. The reported impact is availability only; confidentiality and integrity are not affected.

4

How can the issue be remediated?

Upgrade fast-xml-parser to version 5.12.1, which contains the fix.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203