Security Digest · Vulnerability record

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

libxmljs is vulnerable to a type confusion vulnerability when parsing a specially crafted XML while invoking the namespaces() function (which invokes wrapxmlNodensDefget()) on a grand-child of a node that refers to an entity.

CVSS 9.3 Critical EPSS 1.1% · p66

Should you act?

Critical and remotely reachable

No known exploitation yet, but it is network-reachable without credentials. This signal is computed from CISA KEV, EPSS and CVSS data; it is not an editorial verdict.

  • Not in CISA KEV, but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
  • EPSS 1.1%, percentile 66: FIRST’s model estimates a 1.1% chance of exploitation activity in the next 30 days, higher than 66% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
  • Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
  • Only applies if your dependency tree includes libxmljs (npm) <= 1.0.11, no fixed version listed. Check your lockfile, including transitive dependencies.

What it is

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

From the GitHub advisory

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

Weakness type: CWE-843.

Product: libxmljs (npm) · Assigned by: JFROG · Published: 2024-05-02

Affected and fixed versions

EcosystemPackageVulnerableFirst fixed
npmlibxmljs<= 1.0.11none listed
VendorProductAffected versions (per CVE record)
libxmljs<= 1.0.11

Severity scores

Scored byCVSSScoreVector
JFROG3.18.1 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub4.09.3 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
  • Attack vector: network (remotely reachable)
  • Attack complexity: low
  • Attack requirements: none
  • Privileges required: none (no login)
  • User interaction: none

CVSS measures how bad a flaw is if exploited, not how likely exploitation is. Read it next to the exploitation data below.

Exploitation and urgency

  • CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
  • CISA SSVC assessment: exploitation poc, automatable yes, technical impact total.
  • FIRST EPSS (model of 2026-10-21): 1.14% probability of exploitation activity in the next 30 days; percentile 66.

Timeline

  • — CVE record published by JFROG
  • — GitHub-reviewed advisory GHSA-mg49-jqgw-gcj6 published (critical)
  • — CVE record last updated

Sources and references

Original sources first. Version and fix details should always be confirmed against the vendor or project advisory.

Vulnerability records

  1. GitHub Advisory GHSA-mg49-jqgw-gcj6 github.com
  2. CVE.org record CVE-2024-34392 cve.org
  3. NVD entry CVE-2024-34392 nvd.nist.gov

Other references from the CVE record and advisory

  1. research.jfrog.com research.jfrog.com
  2. github.com github.com

Critical npm advisories · Today’s Security Digest