CVE-2026-27942
fast-xml-parser has stack overflow in XMLBuilder with preserveOrder
- State
- Published
- Severity
- 2.7 Low
- Published
- Feb 26, 2026
- Updated
- Jun 23, 2026
- Reserved
- Feb 25, 2026
Description
fast-xml-parser allows users to validate XML, parse XML to JS object, or build XML from JS object without C/C++ based libraries and no callback. Prior to version 5.3.8, the application crashes with stack overflow when user use XML builder with `preserveOrder:true`. Version 5.3.8 fixes the issue. As a workaround, use XML builder with `preserveOrder:false` or check the input data before passing to builder.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 2.7 Low | 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/E:U | GitHub_M |
Weaknesses
- CWE-120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
Affected Products
| Product | Versions |
|---|---|
fast-xml-parserNaturalIntelligence |
|
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.