Skip to content
OpenAdvisories
High · 8.5 CVE-2026-55849 EUVD-2026-42432GHSA-v75r-vx73-82pj

@cyclonedx/cyclonedx-npm: Shell Injection via Unsanitized `--workspace` Argument

Published Jul 8, 2026 · Updated Jul 9, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
CycloneDX cyclonedx-node-npm >= 2.1.0, < 5.0.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @cyclonedx/cyclonedx-npm >= 2.1.0, < 5.0.0 5.0.0 GHSA-v75r-vx73-82pj

References