{"answers":{"affected":"2 open source packages ship an affected version, including @cyclonedx/cyclonedx-npm.","exploited":"There is no known exploitation of CVE-2026-55849 in the wild and no public exploit code.","fix":"Upgrade @cyclonedx/cyclonedx-npm to 5.0.0 or later.","what":"CVE-2026-55849 is a high-severity command injection vulnerability in cyclonedx-node-npm, published on 8 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-55849 and fix it if it is affected.\n\nWhat it is: CVE-2026-55849 is a high-severity command injection vulnerability in cyclonedx-node-npm, published on 8 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-55849 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @cyclonedx/cyclonedx-npm (npm): affected from 2.1.0; fixed in 5.0.0\n- @cyclonedx/cyclonedx-npm (npm): affected from 2.1.0; fixed in 5.0.0\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-2026-55849/ (Markdown: https://insights.sbomify.com/CVE-2026-55849/index.md)","id":"CVE-2026-55849","markdown":"https://insights.sbomify.com/CVE-2026-55849/index.md","name":"CVE-2026-55849","record":{"aliases":["GHSA-v75r-vx73-82pj"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"npm SBOM generator","requires_auth":"none","summary":"Attackers can execute arbitrary OS commands via unsanitized workspace arguments in the CycloneDX npm CLI when specific environment variables are unset.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.5,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"@cyclonedx/cyclonedx-npm creates CycloneDX Software Bill of Materials from npm projects. From 2.1.0 before 5.0.0, the CLI passes user-supplied --workspace values to a subshell without proper sanitization when npm_execpath is unset or empty, allowing arbitrary OS command execution with the privileges of the invoking user. This issue is fixed in version 5.0.0.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"@cyclonedx/cyclonedx-npm: Shell Injection via Unsanitized `--workspace` Argument","id":"CVE-2026-55849","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"Element Web: A malicious homeserver can inject HTML in Element Web using its homepage","id":"CVE-2026-55850"},"packages":[{"ecosystem":"npm","fixed":["5.0.0"],"introduced":["2.1.0"],"last_affected":[],"package":"@cyclonedx/cyclonedx-npm","purl":null,"source":"GHSA-v75r-vx73-82pj"},{"ecosystem":"npm","fixed":["5.0.0"],"introduced":["2.1.0"],"last_affected":[],"package":"@cyclonedx/cyclonedx-npm","purl":"pkg:npm/%40cyclonedx/cyclonedx-npm","source":"GHSA-v75r-vx73-82pj"}],"prev":{"headline":"mapfish-print: XXE on MapFish Print allows reading arbitrary files of certain types","id":"CVE-2026-55848"},"products":["cyclonedx-node-npm"],"published":"2026-07-08","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":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-09","vendors":["CycloneDX"]},"summary":"Attackers can execute arbitrary OS commands via unsanitized workspace arguments in the CycloneDX npm CLI when specific environment variables are unset.","url":"https://insights.sbomify.com/CVE-2026-55849/"}