Vulnerability library
Security checkMarch 06, 2026

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

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Low severitynpmfast-xml-parser

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Application crashes with stack overflow when user use XML builder with prserveOrder:true for following or similar input

Cause: arrToStr was not validating if the input is an array or a string and treating all non-array values as text content. What kind of vulnerability is it? Who is impacted?

Recommendation

Update the fast-xml-parser package to the latest compatible version. Followings are version details:

  • Affected version(s): **>= 4.0.0-beta.0, < 4.5.4 >= 5.0.0, < 5.3.8**
  • Patched version(s): **4.5.4 5.3.8**

References

Could your website be exposed too?

SmartScanner can check your website for fast-xml-parser has stack overflow in XMLBuilder with preserveOrder and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated March 06, 2026