CVE-2026-27942
LOW 2.7CVSS 4.0fast-xml-parser has stack overflow in XMLBuilder with preserveOrder
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.
- Published
- 26 Feb 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-120
- Also known as
- GHSA-fj3w-jwp8-x2g3
- Sources
- NVDJSONOSV GHSA-fj3w-jwp8-x2g3JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | LOW 2.7 | 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | naturalintelligence | fast-xml-parsercpe:2.3:a:naturalintelligence:fast-xml-parser:*:*:*:*:*:*:*:* |
< 4.5.4 | 4.5.4 |
| NVD | naturalintelligence | fast-xml-parsercpe:2.3:a:naturalintelligence:fast-xml-parser:*:*:*:*:*:*:*:* |
>= 5.0.0, < 5.3.8 | 5.3.8 |
| OSV | npm | fast-xml-parser | >= 5.0.0, < 5.3.8 | 5.3.8 |
| OSV | npm | fast-xml-parser | >= 4.0.0-beta.0, < 4.5.4 | 4.5.4 |
References
- https://github.com/NaturalIntelligence/fast-xml-parser/commit/c13a961910f14986295dd28484eee830fa1a0e8a · Patch, WEB
- https://github.com/NaturalIntelligence/fast-xml-parser/pull/791 · Issue Tracking, Patch, WEB
- https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-fj3w-jwp8-x2g3 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-27942 · ADVISORY
- https://github.com/NaturalIntelligence/fast-xml-parser · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 26 Feb 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 Feb 2026)