Stack Overflow Vulnerability in Fast XML Parser by Natural Intelligence
CVE-2026-27942
2.7LOW
What is CVE-2026-27942?
The fast-xml-parser tool enables users to validate XML, parse XML to JavaScript objects, or construct XML from JavaScript objects without relying on C/C++ libraries or callbacks. However, versions prior to 5.3.8 are susceptible to a stack overflow crash when the XML builder is used with the option preserveOrder:true. This can lead to application instability and unexpected behavior. Users are encouraged to upgrade to version 5.3.8 or implement a workaround by setting preserveOrder:false or validating input data before it is passed to the builder.
Affected Version(s)
fast-xml-parser < 5.3.8
