{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.0.11"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "3121013c0e447d267bf4514317c52ad81670f2f5"
            }
          ],
          "repo": "https://github.com/libxmljs/libxmljs",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "libxmljs 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).",
  "id": "CVE-2024-34391",
  "modified": "2026-03-13T21:47:16.899804004Z",
  "published": "2024-05-02T19:15:06.177Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://github.com/libxmljs/libxmljs/issues/645"
    },
    {
      "type": "EVIDENCE",
      "url": "https://research.jfrog.com/vulnerabilities/libxmljs-attrs-type-confusion-rce-jfsa-2024-001033988/"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}