Inefficient regular expression complexity in fast-xml-parser - #VU166241

 

Inefficient regular expression complexity in fast-xml-parser - #VU166241

Published: November 16, 2026


Vulnerability identifier: #VU166241
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-1333
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service by blocking the Node.js event loop for tens of seconds.

The vulnerability exists due to quadratic-time whitespace rescanning in fast-xml-parser's scanAttributeTokens function in src/validator.js when processing an attribute section containing whitespace followed by a stray '=' without an attribute name. A remote attacker can submit XML constructed as "<a " + " ".repeat(200000) + "=>" to a service using XMLValidator.validate(xml) or new XMLParser().parse(xml, true) to exhaust processing resources.


Affected software

fast-xml-parser

Remediation

Install security update from vendor's website.

fast-xml-parser - update to 5.12.1

External References

Related Security Bulletins