CVE-2026-27942

High

Description

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.

SeverityHigh
CVSS7.5
Exploit probability—
ProductNaturalintelligence Fast-xml-parser
PublishedFeb 26, 2026
First seenFeb 26, 2026
Weakness typeCWE-120CWE-120

How to fix

Update
  • naturalintelligence fast-xml-parser4.5.4, 5.3.8 or later
  • fast-xml-parser5.3.8, 4.5.4 or later

Affected products

ProductAffected versionsFixed in
naturalintelligence fast-xml-parserv < 4.5.4, 5.0.0 ≤ v < 5.3.84.5.4, 5.3.8
fast-xml-parsernpm5.0.0 ≤ v < 5.3.8, 4.0.0-beta.0 ≤ v < 4.5.45.3.8, 4.5.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.