Use After Free Affecting libxmljs package, versions >=0.8.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.83% (53rd 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-10557445
  • published27 Jun 2025
  • disclosed6 Oct 2023
  • creditBachir Bendrissou

Introduced: 6 Oct 2023

CVE-2023-45322  (opens in a new tab)
CWE-416  (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 Use After Free via the xmlUnlinkNode function in tree.c. An attacker can cause a denial of service or potentially execute arbitrary code by exploiting this vulnerability.

Note:

This is only exploitable if a certain memory allocation fails.

** Disputed **

The vendor's position is "I don't think these issues are critical enough to warrant a CVE ID ... because an attacker typically can't control when memory allocations fail."

PoC

./libxml2/xmllint --copy --html --maxmem 315229 input.xml

CVSS Base Scores

version 3.1