{"id":"CVE-2026-27942","summary":"fast-xml-parser has stack overflow in XMLBuilder with preserveOrder","details":"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.","aliases":["GHSA-fj3w-jwp8-x2g3"],"modified":"2026-08-12T03:51:14.932852312Z","published":"2026-02-26T01:22:11.383Z","related":["CGA-83fg-7mmw-c32r"],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-120"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27942.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27942.json"},{"type":"ADVISORY","url":"https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-fj3w-jwp8-x2g3"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27942"},{"type":"FIX","url":"https://github.com/NaturalIntelligence/fast-xml-parser/commit/c13a961910f14986295dd28484eee830fa1a0e8a"},{"type":"FIX","url":"https://github.com/NaturalIntelligence/fast-xml-parser/pull/791"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/naturalintelligence/fast-xml-parser","events":[{"introduced":"0"},{"fixed":"d4eb6b4713a8d11e6730943392419040898ecbc0"},{"introduced":"2f7d138af8338aaf65c1d98902f76259c7233373"},{"fixed":"c692040f6b5f5045d38b66b1da04e4d3abc97052"},{"fixed":"c13a961910f14986295dd28484eee830fa1a0e8a"}],"database_specific":{"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:naturalintelligence:fast-xml-parser:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"4.5.4"},{"introduced":"5.0.0"},{"fixed":"5.3.8"}]}}],"versions":["v4.5.3","v4.5.2","v5.3.7","v5.3.6","v5.3.5","v5.3.4","v5.3.3","v5.3.2","v5.3.1","v5.3.0","v5.2.5","v5.2.3","v5.2.2","v5.2.1","v5.2.0","v5.1.0","v5.0.9","v5.0.7","v5.0.6","v5.0.4","v5.0.2","v5.0.0","v4.5.1","v4.5.0","v4.4.1","v4.4.0","v4.3.6","v4.3.5","v4.3.4","v4.3.3","v4.3.2","v4.3.1","v4.3.0","v4.2.7","v4.2.6","v4.2.5","v4.2.4","v4.2.3","v4.2.0","v4.1.4","v4.1.3","v4.1.2","v4.1.1","v4.1.0","v4.0.15","v4.0.14","v4.0.13","v4.0.12","v4.0.11","v4.0.10","v4.0.9","v4.0.8","v4.0.7","v4.0.6","v4.0.5","v4.0.4","v4.0.2","v4.0.1","v4.0.0","v4.0.0-beta.6","v4.0.0-beta.5","v4.0.0-beta.4","v4.0.0-beta.3","v4.0.0-beta.2","v4.0.0-beta.0","v3.21.1","v3.21.0","v3.20.3","v3.20.2","v3.20.1","v3.20.0","3.19.0","3.18.0","3.17.5","3.17.1","3.16.0","v3.15.0","3.14.0","3.13.0","3.12.16","3.12.5","3.10.0","3.4.0","3.2.0","3.0.0","2.9.4","2.9.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-27942.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}