CVE-2024-34392: libxmljs - Type Confusion Vulnerability

libxmljs Updated 02 Oct 2025

Summary

02/05/2024
No i
Critical
8.1

CVE-2024-34392: libxmljs vulnerable to type confusion when parsing specially crafted XML. Affects libxmljs versions < 1.0.11. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

libxmljs is an npm package that provides a Node.js interface to libxml, a powerful and feature-rich XML library. It allows developers to parse, manipulate, and generate XML documents using JavaScript. The package is widely used in Node.js applications for XML processing tasks.

Vulnerability Detail

libxmljs is vulnerable to a type confusion vulnerability when parsing a specially crafted XML document. This vulnerability occurs when the namespaces() function is invoked on a grand-child of a node that refers to an entity. The vulnerability can be exploited to cause denial of service and potentially execute remote code on the affected system. The issue has been assigned the CVE identifier CVE-2024-34392.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to update the libxmljs package to a patched version as soon as possible.

Conclusion

libxmljs is vulnerable to a type confusion vulnerability that can result in denial of service and potential remote code execution. It is crucial for developers using libxmljs to update to a patched version of the package to mitigate this vulnerability. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for libxmljs →

Share this vulnerability

FAQ

libxmljs is an npm package that provides a Node.js interface to libxml, a powerful XML library.

The vulnerability in libxmljs can lead to denial of service and potential remote code execution on the affected system.

To fix this vulnerability, update the libxmljs package to a version that includes the necessary security patches.

There is no known workaround for this vulnerability. It is recommended to update the libxmljs package.

The vulnerability affects all versions of libxmljs up to and including 1.0.11.

Related vulnerabilities

Recent vulnerabilities recorded for libxmljs.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback