# CVE-2024-34393: libxmljs2 attrs type confusion RCE

- Severity: High 8.1 (CVSS:3.1, scored by JFROG) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.97%, higher than 62% of CVEs (2026-12-01)
- Published: 2024-05-02T18:56:44.270Z
- Modified: 2026-10-03T09:17:03.720Z
- Also known as: GHSA-mjr4-7xg5-pfvh
- Weaknesses: CWE-843
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: JFROG

## Description

libxmljs2 is vulnerable to a type confusion vulnerability when parsing a specially crafted XML while invoking a function on the result of attrs() that was called on a parsed node. This vulnerability might lead to denial of service (on both 32-bit systems and 64-bit systems), data leak, infinite loop and remote code execution (on 32-bit systems with the XML_PARSE_HUGE flag enabled).

(As written by CVE List.)

## Affected

- libxmljs2: up to 0.37.0
- libxmljs_project libxmljs: up to 0.33.0
- libxmljs2 (npm): up to 0.33.0

## Every score

- JFROG: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.1 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`

## References

- <https://research.jfrog.com/vulnerabilities/libxmljs2-attrs-type-confusion-rce-jfsa-2024-001034097/>
- <https://github.com/marudor/libxmljs2/issues/204> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-34393> (advisory)
- <https://github.com/marudor/libxmljs2> (package)
- <https://research.jfrog.com/vulnerabilities/libxmljs2-attrs-type-confusion-rce-jfsa-2024-001034097> (web)

## Sources

- CVE List: [CVE-2024-34393](https://www.cve.org/CVERecord?id=CVE-2024-34393), CVE Terms of Use, modified 2026-10-03
- GitHub Advisory Database: [GHSA-mjr4-7xg5-pfvh](https://github.com/advisories/GHSA-mjr4-7xg5-pfvh), CC-BY-4.0, modified 2024-11-25
- NVD: [CVE-2024-34393](https://nvd.nist.gov/vuln/detail/CVE-2024-34393), Public domain, modified 2026-10-03

---

Page: https://cve.day/CVE-2024-34393 · Whole record: https://cve.day/CVE-2024-34393.json · Rebuilt by cve.day 2026-11-25T22:58:39.909Z
