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

CVE-2024-34394: libxmljs2 vulnerable to type confusion when parsing specially crafted XML

May 2, 2024 (updated November 25, 2024)

libxmljs2 is vulnerable to a type confusion vulnerability when parsing a specially crafted XML while invoking the namespaces() function (which invokes XmlNode::get_local_namespaces()) 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-78h3-pg4x-j8cv
  • github.com/marudor/libxmljs2
  • github.com/marudor/libxmljs2/issues/205
  • nvd.nist.gov/vuln/detail/CVE-2024-34394
  • research.jfrog.com/vulnerabilities/libxmljs2-namespaces-type-confusion-rce-jfsa-2024-001034098

Code Behaviors & Features

Detect and mitigate CVE-2024-34394 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 0.35.0

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/libxmljs2/CVE-2024-34394.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:35 +0000.