High severity · published Feb 26, 2026
CVE-2026-27942
fast-xml-parser has stack overflow in XMLBuilder with preserveOrder
7.5
CVSS
0.5%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 45% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
FA
fast-xml-parser · NaturalIntelligence
< 5.3.8 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-27942
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-27942
Patch
https://github.com/NaturalIntelligence/fast-xml-parser/commit/c13a961910f14986295dd28484eee830fa1a0e8a
Issue Tracking
https://github.com/NaturalIntelligence/fast-xml-parser/pull/791
Vendor Advisory
https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-fj3w-jwp8-x2g3
More from fast-xml-parser
9.3
CVE-2026-25896
fast-xml-parser has an entity encoding bypass via regex injection in DOCTYPE entity names
8.7
CVE-2026-73569
fast-xml-parser: Repeated DOCTYPE declarations reset entity expansion limits
7.5
CVE-2026-33036
fast-xml-parser affected by numeric entity expansion bypassing all entity expansion limits (incomplete fix for CVE-2026-26278)
7.5
CVE-2026-26278
fast-xml-parser affected by DoS through entity expansion in DOCTYPE (no expansion limit)
7.5
CVE-2026-25128
fast-xml-parser has RangeError DoS Numeric Entities Bug
