Vulnerability · Published Sep 17, 2026 · Assigned by GitHub_M
CVE-2026-71538@cyclonedx/cyclonedx-npm: Shell Injection via Unsanitized --workspace Argument on Windows
High 8.5
In plain English
A high-severity OS command injection in cyclonedx-node-npm from CycloneDX. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 12% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
@cyclonedx/cyclonedx-npm creates CycloneDX Software Bill of Materials from npm projects. Prior to version 6.0.0, the Windows fallback path in src/npmRunner.ts, used when npm_execpath does not provide the npm CLI path, can construct a shell command containing an untrusted value from the --workspace option. When an attacker can influence that option and the fallback npm execution path is reached, shell metacharacters in the workspace value can execute arbitrary operating-system commands with the privileges of the user running the CLI, allowing data access, file modification, or service disruption. This issue is fixed in version 6.0.0.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @cyclonedx/cyclonedx-npm | 6.0.0 | GHSA-q69g-4hcv-6jg4 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| CycloneDX | cyclonedx-node-npm | < 6.0.0 |
Weakness: CWE-78 · 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
References
- https://github.com/CycloneDX/cyclonedx-node-npm/security/advisories/GHSA-q69g-4hcv-6jg4 x_refsource_CONFIRM
- https://github.com/CycloneDX/cyclonedx-node-npm/pull/1489 x_refsource_MISC
- https://github.com/CycloneDX/cyclonedx-node-npm/commit/15d3beb5bcd2b0b6eccfdf31192f5103b3f12c0f x_refsource_MISC
- https://github.com/CycloneDX/cyclonedx-node-npm/releases/tag/v6.0.0 x_refsource_MISC