Buffer Overflow Affecting fast-xml-parser package, versions <4.5.4>=5.0.0 <5.3.8


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-FASTXMLPARSER-15353391
  • published26 Feb 2026
  • disclosed26 Feb 2026
  • creditUnknown

Introduced: 26 Feb 2026

NewCVE-2026-27942  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

Upgrade fast-xml-parser to version 4.5.4, 5.3.8 or higher.

Overview

fast-xml-parser is a Validate XML, Parse XML, Build XML without C/C++ based libraries

Affected versions of this package are vulnerable to Buffer Overflow via the XMLBuilder when preserveOrder:true is set. An attacker can cause the application to crash by providing specially crafted input data.

Workaround

This vulnerability can be mitigated by using preserveOrder:false or by validating input data before passing it to the builder.

CVSS Base Scores

version 4.0
version 3.1