Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. libxmljs
  4. ›
  5. CVE-2024-34392

CVE-2024-34392: libxmljs vulnerable to type confusion when parsing specially crafted XML

May 2, 2024 (updated November 18, 2024)

libxmljs is vulnerable to a type confusion vulnerability when parsing a specially crafted XML while invoking the namespaces() function (which invokes _wrap__xmlNode_nsDef_get()) on a grand-child of a node that refers to an entity. This vulnerability can lead to denial of service and remote code execution.

References

  • github.com/advisories/GHSA-mg49-jqgw-gcj6
  • github.com/libxmljs/libxmljs
  • github.com/libxmljs/libxmljs/issues/646
  • nvd.nist.gov/vuln/detail/CVE-2024-34392
  • research.jfrog.com/vulnerabilities/libxmljs-namespaces-type-confusion-rce-jfsa-2024-001034096

Code Behaviors & Features

Detect and mitigate CVE-2024-34392 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 1.0.11

Solution

Unfortunately, there is no solution available yet.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')

Source file

npm/libxmljs/CVE-2024-34392.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:16 +0000.