{"id":"GHSA-fj3w-jwp8-x2g3","revision":"8fa249ed0a58497ea85772c3dca47a5e","records":[{"revision":"8fa249ed0a58497ea85772c3dca47a5e","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-fj3w-jwp8-x2g3","aliases":["CVE-2026-27942"],"title":"fast-xml-parser has stack overflow in XMLBuilder with preserveOrder","description":"### Impact\nApplication crashes with stack overflow when user use XML builder with `prserveOrder:true` for following or similar input \n\n```\n[{\n    'foo': [\n        { 'bar': [{ '@_V': 'baz' }] }\n    ]\n}]\n```\n\nCause: `arrToStr` was not validating if the input is an array or a string and treating all non-array values as text content.\n_What kind of vulnerability is it? Who is impacted?_\n\n### Patches\nYes in 5.3.8\n\n### Workarounds\nUse XML builder with `preserveOrder:false` or check the input data before passing to builder.\n\n### References\n[_Are there any links users can visit to find out more?_](https://github.com/NaturalIntelligence/fast-xml-parser/pull/791)","state":0,"publishedAt":"2026-02-26T22:33:10+00:00","modifiedAt":"2026-09-10T03:50:34.7652538+00:00","affected":[{"ecosystem":"npm","name":"fast-xml-parser","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"5.0.0"},{"kind":"fixed","version":"5.3.8"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"fast-xml-parser","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"4.0.0-beta.0"},{"kind":"fixed","version":"4.5.4"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-fj3w-jwp8-x2g3","https://nvd.nist.gov/vuln/detail/CVE-2026-27942","https://github.com/NaturalIntelligence/fast-xml-parser/pull/791","https://github.com/NaturalIntelligence/fast-xml-parser/commit/c13a961910f14986295dd28484eee830fa1a0e8a","https://github.com/NaturalIntelligence/fast-xml-parser"],"sourceUrl":"https://github.com/advisories/GHSA-fj3w-jwp8-x2g3","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-fj3w-jwp8-x2g3","identifiers":["GHSA-fj3w-jwp8-x2g3","CVE-2026-27942"]},"retained":false,"historicalAffected":[]}],"coverage":[]}