{"id":"CVE-2026-55849","published":"2026-07-08T21:10:15Z","modified":"2026-07-09T19:36:40Z","title":"@cyclonedx/cyclonedx-npm: Shell Injection via Unsanitized `--workspace` Argument","vendor":"CycloneDX","product":"cyclonedx-node-npm","tier":"tail","description":{"text":"@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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.5,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00235,"percentile":0.14801,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/CycloneDX/cyclonedx-node-npm/security/advisories/GHSA-v75r-vx73-82pj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/CycloneDX/cyclonedx-node-npm/pull/1476","tags":["x_refsource_MISC"]},{"url":"https://github.com/CycloneDX/cyclonedx-node-npm/commit/9f646253f4263d8644dadb86e5597fad996f688f","tags":["x_refsource_MISC"]},{"url":"https://github.com/CycloneDX/cyclonedx-node-npm/releases/tag/v5.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":8.9,"factors":[{"name":"EPSS percentile","points":2.96},{"name":"CVSS severity","points":5.95}]},"vendorSlug":"cyclonedx","affectedVersions":[{"vendor":"CycloneDX","product":"cyclonedx-node-npm","versions":[">= 2.1.0, < 5.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-07-09T19:36:34.180471Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@cyclonedx/cyclonedx-npm","vulnerableRanges":[">=2.1.0, <5.0.0"],"patched":["5.0.0"],"from":["GHSA-v75r-vx73-82pj"],"provenance":"source"}],"summary":{"text":"The flaw is an OS command injection in the CLI of @cyclonedx/cyclonedx-npm (product cyclonedx-node-npm), which generates CycloneDX Software Bills of Materials from npm projects, affecting versions from 2.1.0 before 5.0.0. When npm_execpath is unset or empty, user-supplied --workspace values are passed to a subshell without proper sanitization. An attacker with local access who can get a crafted --workspace value into an invocation, and who needs a user to take action to trigger it, can run arbitrary OS commands with the privileges of the invoking user.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:06:01Z"},"euvd":{"id":"EUVD-2026-42432","exploited":false,"provenance":"source"}}