fast-xml-parser: Quadratic CPU consumption scanning unterminated stop-node tags
- State
- Published
- Severity
- 3.7 Low
- Published
- Nov 10, 2026
- Updated
- Nov 12, 2026
- Reserved
- Nov 10, 2026
Description
fast-xml-parser allows users to process XML from JS object without C/C++ based libraries or callbacks. Prior to 5.12.0, when the non-default stopNodes option is enabled, readStopNodeData() in OrderedObjParser.js calls readTagExp() for each less-than character in an unterminated stop-node body and repeatedly rescans the remaining input while looking for a closing greater-than character. An attacker who supplies XML containing many tag fragments without a later closing character can cause quadratic rescanning before parsing fails, blocking a Node.js event loop and causing CPU-exhaustion denial of service. This issue is fixed in version 5.12.0.
| Product | Versions |
|---|---|
| fast-xml-parser NaturalIntelligence | < 5.12.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 3.7 Low | GitHub_M |
Weaknesses
- CWE-407 Inefficient Algorithmic Complexity
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.