{"answers":{"affected":"2 open source packages ship an affected version, including libxmljs2.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-34394 exists.","fix":"No fix has been published for CVE-2024-34394 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-34394 is a high-severity memory corruption vulnerability in libxmljs2, 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-34394 and fix it if it is affected.\n\nWhat it is: CVE-2024-34394 is a high-severity memory corruption vulnerability in libxmljs2, 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-34394 exists.\n\nAffected packages and fixed versions:\n- libxmljs2 (npm): affected all versions up to 0.35.0; no fix listed\n- libxmljs2 (npm): affected all versions up to 0.35.0; 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-34394/ (Markdown: https://insights.sbomify.com/CVE-2024-34394/index.md)","id":"CVE-2024-34394","markdown":"https://insights.sbomify.com/CVE-2024-34394/index.md","name":"CVE-2024-34394","record":{"aliases":["GHSA-78h3-pg4x-j8cv"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js XML library","requires_auth":"none","summary":"A type confusion vulnerability in libxmljs2 allows attackers to achieve remote code execution or denial of service via crafted XML input.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"JFROG","cpe":[],"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":"libxmljs2 is vulnerable to a type confusion vulnerability when parsing a specially crafted XML while invoking the namespaces() function (which invokes XmlNode::get_local_namespaces()) on a grand-child of a node that refers to an entity. This vulnerability can lead to denial of service and remote code execution.","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":"libxmljs2 namespaces type confusion RCE","id":"CVE-2024-34394","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":"Other in n/a","id":"CVE-2024-34397"},"packages":[{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["0.35.0"],"package":"libxmljs2","purl":null,"source":"GHSA-78h3-pg4x-j8cv"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["0.35.0"],"package":"libxmljs2","purl":"pkg:npm/libxmljs2","source":"GHSA-78h3-pg4x-j8cv"}],"prev":{"headline":"libxmljs2 attrs type confusion RCE","id":"CVE-2024-34393"},"products":[],"published":"2024-05-02","related":[],"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":"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":"2026-10-03","vendors":[]},"summary":"A type confusion vulnerability in libxmljs2 allows attackers to achieve remote code execution or denial of service via crafted XML input.","url":"https://insights.sbomify.com/CVE-2024-34394/"}