CVE-2024-34394: libxmljs2 vulnerable to type confusion when parsing specially crafted XML
8.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.81485%
CWE
Published
5/2/2024
Updated
11/25/2024
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
libxmljs2 | npm | <= 0.35.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability description explicitly identifies namespaces() -> get_local_namespaces() as the call chain. The PoC demonstrates exploitation via c2.namespaces(true) on an entity-referenced node. Type confusion occurs when these functions process entity-derived nodes without proper type checks, as entity nodes don't have namespaces but get treated as namespace-capable nodes. The lack of node type validation in these functions is the root cause.