Stack-based Buffer Overflow Affecting libxmljs package, versions *


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.09% (28th 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-JS-LIBXMLJS-10674175
  • published10 Jul 2025
  • disclosed12 Jun 2025
  • creditAhmed Lekssays

Introduced: 12 Jun 2025

CVE-2025-6021  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

There is no fixed version for libxmljs.

Overview

libxmljs is a libxml bindings for v8 javascript engine

Affected versions of this package are vulnerable to Stack-based Buffer Overflow via the xmlBuildQName function. An attacker can cause a crash and denial of service by supplying specially crafted XML input that triggers an integer overflow and subsequent stack buffer overflow.

CVSS Base Scores

version 4.0
version 3.1