CVE-2026-71538
## Summary A **Windows-specific** command injection vulnerability exists in `@cyclonedx/cyclonedx-npm` when the CLI is invoked with the `--workspace <value>` option. User-supplied `--workspace` values can be passed to a shell command without proper neutralization on the Windows fallback execution path, enabling attackers to inject arbitrary OS commands. The vulnerability was fixed in version [6.0.0][v6.0.0]. ## Vulnerability Details When `cyclonedx-npm` is executed with the `--workspace` option, the provided argument is incorporated into an internal command execution flow. On **Windows systems**, this path can interpret untrusted `--workspace` input as shell syntax if not safely handled. As a result, specially crafted workspace names can break out of the intended command context and execute arbitrary commands with the privileges of the invoking user. ## Impact An attacker who can influence the value passed to `--workspace` can execute arbitrary OS commands **on Windows hosts**. This may lead to: * Arbitrary command execution * Data exfiltration * Local privilege escalation (depending on runtime context and privileges) * Modification or destruction of files accessible to the user running the CLI The vulnerability affects only scenarios where: * The user invokes `cyclonedx-npm` with `--workspace <value>`, and * The vulnerable execution path is reached on **Windows**. ## Exploitation Conditions (High-Level) Exploitation requires the attacker to supply or influence the `--workspace` value passed to the CLI. If the tool falls back to the vulnerable shell execution path on **Windows**, specially crafted workspace identifiers can cause unintended command execution. No exploit code is included here to avoid providing weaponizable examples. ## Root Cause The CLI fallback execution path on **Windows** constructed a shell command using untrusted input from the `--workspace` option. Because the fallback code path does not sanitize or escape the works
Properties
- ghsa_id
- GHSA-q69g-4hcv-6jg4
- summary
- @cyclonedx/cyclonedx-npm: Shell Injection via Unsanitized --workspace Argument on Windows
- severity
- high
- cve_id
- CVE-2026-71538
- signal_observed_at
- 2026-09-17T21:32:40+00:00
- is_ghsa_only
- false
- ghsa_published
- 2026-09-17T14:50:40Z
- source_url
- https://github.com/advisories/GHSA-q69g-4hcv-6jg4
- ghsa_updated
- 2026-09-17T14:50:42Z
Related Entities (4)
AFFECTS (1)
HAS_WEAKNESS (1)
REPORTED_BY (1)
VULNERABLE_TO (1)
Explore deeper with Ninja Signal's threat intelligence graph