{"answers":{"affected":"2 open source packages ship an affected version, including @cyclonedx/cyclonedx-library.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-34345 exists.","fix":"Upgrade @cyclonedx/cyclonedx-library to 6.7.1 or later.","what":"CVE-2024-34345 is a high-severity vulnerability in cyclonedx-javascript-library, published on 9 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-34345 and fix it if it is affected.\n\nWhat it is: CVE-2024-34345 is a high-severity vulnerability in cyclonedx-javascript-library, published on 9 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-34345 exists.\n\nAffected packages and fixed versions:\n- @cyclonedx/cyclonedx-library (npm): affected from 6.7.0; fixed in 6.7.1\n- @cyclonedx/cyclonedx-library (npm): affected from 6.7.0; fixed in 6.7.1\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-34345/ (Markdown: https://insights.sbomify.com/CVE-2024-34345/index.md)","id":"CVE-2024-34345","markdown":"https://insights.sbomify.com/CVE-2024-34345/index.md","name":"CVE-2024-34345","record":{"aliases":["GHSA-38gf-rh2w-gmj7"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"CycloneDX JavaScript library","requires_auth":"none","summary":"An attacker can exploit XML External Entity injection in the CycloneDX JavaScript library's validator to read sensitive data or cause denial of service.","user_interaction":"not_required","vuln_class":"xxe"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","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-611","name":"Improper Restriction of XML External Entity Reference"}],"description":"The CycloneDX JavaScript library contains the core functionality of OWASP CycloneDX for JavaScript. In 6.7.0, XML External entity injections were possible, when running the provided XML Validator on arbitrary input. This issue was fixed in version 6.7.1.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"@cyclonedx/cyclonedx-library Improper Restriction of XML External Entity Reference vulnerability","id":"CVE-2024-34345","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xxe","year":"2024"},"n_packages":2,"n_references":3,"next":{"headline":"Deno contains a permission escalation via open of privileged files with missing `--deny` flag","id":"CVE-2024-34346"},"packages":[{"ecosystem":"npm","fixed":["6.7.1"],"introduced":["6.7.0"],"last_affected":[],"package":"@cyclonedx/cyclonedx-library","purl":null,"source":"GHSA-38gf-rh2w-gmj7"},{"ecosystem":"npm","fixed":["6.7.1"],"introduced":["6.7.0"],"last_affected":[],"package":"@cyclonedx/cyclonedx-library","purl":"pkg:npm/%40cyclonedx/cyclonedx-library","source":"GHSA-38gf-rh2w-gmj7"}],"prev":{"headline":"Remote code execution via the browser when running the test locally in nuxt","id":"CVE-2024-34344"},"products":["cyclonedx-javascript-library"],"published":"2024-05-09","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":"2024-08-02","vendors":["CycloneDX"]},"summary":"An attacker can exploit XML External Entity injection in the CycloneDX JavaScript library's validator to read sensitive data or cause denial of service.","url":"https://insights.sbomify.com/CVE-2024-34345/"}