Skip to main content
← All vulnerabilities
CVE-2026-27942GHSA-FJ3W-JWP8-X2G3

fast-xml-parser has stack overflow in XMLBuilder with preserveOrder

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.3.8, 4.5.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • NaturalIntelligence fast-xml-parser

    fixed in 5.3.8

  • fast-xml-parsernpm

    From 5.0.0 · fixed in 5.3.8

  • fast-xml-parsernpm

    From 4.0.0-beta.0 · fixed in 4.5.4

References 3

GitHub · NaturalIntelligence/fast-xml-parser