Buffer Overflow Affecting org.webjars.npm:fast-xml-parser package, versions [,5.8.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.48% (38th percentile)

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-JAVA-ORGWEBJARSNPM-15353392
  • published26 Feb 2026
  • disclosed26 Feb 2026
  • creditUnknown

Introduced: 26 Feb 2026

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

How to fix?

Upgrade org.webjars.npm:fast-xml-parser to version 5.8.0 or higher.

Overview

org.webjars.npm: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