CVE-2026-71538 @cyclonedx/cyclonedx-npm: Shell Injection via Unsanitized --workspace Argument on Windows
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| CycloneDX @cyclonedx/cyclonedx-npm(npm) | < 6.0.0 | 6.0.0 | Fixed |
| cyclonedx-node-npm | = < 6.0.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cyclonedx-node-npm | = < 6.0.0 | No fix listed |
| CycloneDX @cyclonedx/cyclonedx-npm(npm) | < 6.0.0 | 6.0.0 |
References
- https://github.com/CycloneDX/cyclonedx-node-npm/security/advisories/GHSA-q69g-4hcv-6jg4 vendor-advisory
- https://github.com/CycloneDX/cyclonedx-node-npm/pull/1489 patch
- https://github.com/CycloneDX/cyclonedx-node-npm/commit/15d3beb5bcd2b0b6eccfdf31192f5103b3f12c0f patch
- https://github.com/CycloneDX/cyclonedx-node-npm/releases/tag/v6.0.0
- github.com
- github.com product
- ENISA EUVD EUVD-2026-81665 third-party-advisory