Vulnerability · Published Feb 26, 2026 · Assigned by GitHub_M
CVE-2026-27942fast-xml-parser has stack overflow in XMLBuilder with preserveOrder
Low 2.7
In plain English
A low-severity buffer overflow in fast-xml-parser from NaturalIntelligence. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 46% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-webfont | no fix listed | DEBIAN-CVE-2026-27942 |
| Debian:13 | node-webfont | no fix listed | DEBIAN-CVE-2026-27942 |
| Debian:14 | node-webfont | no fix listed | DEBIAN-CVE-2026-27942 |
| Ubuntu:24.04:LTS | node-webfont | no fix listed | UBUNTU-CVE-2026-27942 |
| Ubuntu:25.10 | node-webfont | no fix listed | UBUNTU-CVE-2026-27942 |
| Ubuntu:26.04:LTS | node-webfont | no fix listed | UBUNTU-CVE-2026-27942 |
| Ubuntu:26.10 | node-webfont | no fix listed | UBUNTU-CVE-2026-27942 |
| npm | fast-xml-parser | 4.5.4 | GHSA-fj3w-jwp8-x2g3 |
| npm | fast-xml-parser | 5.3.8 | GHSA-fj3w-jwp8-x2g3 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| NaturalIntelligence | fast-xml-parser | < 5.3.8 |
Weakness: CWE-120 · Vector: 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
References
- https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-fj3w-jwp8-x2g3 x_refsource_CONFIRM
- https://github.com/NaturalIntelligence/fast-xml-parser/pull/791 x_refsource_MISC
- https://github.com/NaturalIntelligence/fast-xml-parser/commit/c13a961910f14986295dd28484eee830fa1a0e8a x_refsource_MISC