{"answers":{"affected":"2 open source packages ship an affected version, including libxmljs. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-34391 exists.","fix":"No fix has been published for CVE-2024-34391 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-34391 is a high-severity memory corruption vulnerability in libxmljs_project:libxmljs, published on 2 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-34391 and fix it if it is affected.\n\nWhat it is: CVE-2024-34391 is a high-severity memory corruption vulnerability in libxmljs_project:libxmljs, published on 2 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-34391 exists.\n\nAffected packages and fixed versions:\n- libxmljs (npm): affected all versions up to 1.0.11; no fix listed\n- libxmljs (npm): affected all versions up to 1.0.11; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-34391/ (Markdown: https://insights.sbomify.com/CVE-2024-34391/index.md)","id":"CVE-2024-34391","markdown":"https://insights.sbomify.com/CVE-2024-34391/index.md","name":"CVE-2024-34391","record":{"aliases":["GHSA-6433-x5p4-8jc7"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service","data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Node.js XML library","requires_auth":"none","summary":"A type confusion in libxmljs allows attackers to cause denial of service, data leaks, or remote code execution on 32-bit systems with specific flags.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"JFROG","cpe":[{"product":"libxmljs","vendor":"libxmljs_project"}],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-843","name":"Access of Resource Using Incompatible Type"}],"description":"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).","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"libxmljs attrs type confusion RCE","id":"CVE-2024-34391","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"memory_corruption","year":"2024"},"n_packages":2,"n_references":2,"next":{"headline":"libxmljs namespaces type confusion RCE","id":"CVE-2024-34392"},"packages":[{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["1.0.11"],"package":"libxmljs","purl":null,"source":"GHSA-6433-x5p4-8jc7"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["1.0.11"],"package":"libxmljs","purl":"pkg:npm/libxmljs","source":"GHSA-6433-x5p4-8jc7"}],"prev":{"headline":"WordPress Post Grid Master plugin \u003c= 3.4.8 - Auth. Cross Site Scripting (XSS) vulnerability","id":"CVE-2024-34390"},"products":["libxmljs_project:libxmljs"],"published":"2024-05-02","related":[{"cvss_score":8.1,"headline":"libxmljs namespaces type confusion RCE","id":"CVE-2024-34392","kev_date_added":null,"published":"2024-05-02"},{"cvss_score":7.5,"headline":"libxmljs has segmentation fault, potentially leading to a denial-of-service (DoS)","id":"CVE-2025-25341","kev_date_added":null,"published":"2025-12-26"},{"cvss_score":7.5,"headline":"Denial of Service (DoS)","id":"CVE-2022-21144","kev_date_added":null,"published":"2022-05-01"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-11-25","vendors":["libxmljs_project"]},"summary":"A type confusion in libxmljs allows attackers to cause denial of service, data leaks, or remote code execution on 32-bit systems with specific flags.","url":"https://insights.sbomify.com/CVE-2024-34391/"}