CVE-2024-34392
CRITICAL 9.8CVSS 3.1libxmljs 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 _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.
- Published
- 2 May 2024
- Last modified
- 17 Jun 2026
- Assigned by
- reefs@jfrog.com
- NVD status
- Analyzed
- Weakness
- CWE-843
- Also known as
- GHSA-mg49-jqgw-gcj6
- Sources
- NVDJSONOSV GHSA-mg49-jqgw-gcj6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | reefs@jfrog.com (Secondary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | libxmljs_project | libxmljscpe:2.3:a:libxmljs_project:libxmljs:*:*:*:*:*:node.js:*:* |
< 1.0.11 | 1.0.11 |
| OSV | npm | libxmljs | <= 1.0.11 |
References
- https://github.com/libxmljs/libxmljs/issues/646 · Exploit, Issue Tracking, WEB
- https://research.jfrog.com/vulnerabilities/libxmljs-namespaces-type-confusion-rce-jfsa-2024-001034096/ · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-34392 · ADVISORY
- https://github.com/libxmljs/libxmljs · PACKAGE
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 2 May 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 2 May 2024)