CVE-2026-27942
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.
How to fix
- naturalintelligence fast-xml-parser4.5.4, 5.3.8 or later
- fast-xml-parser5.3.8, 4.5.4 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| naturalintelligence fast-xml-parser | v < 4.5.4, 5.0.0 ≤ v < 5.3.8 | 4.5.4, 5.3.8 |
| fast-xml-parsernpm | 5.0.0 ≤ v < 5.3.8, 4.0.0-beta.0 ≤ v < 4.5.4 | 5.3.8, 4.5.4 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.