CVE-2026-71538: @cyclonedx/cyclonedx-npm: Shell Injection via Unsanitized --workspace Argument on Windows

Published Sep 17, 2026
·
Updated

@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 npmexecpath 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 Software

1 affected component
npm/@cyclonedx/cyclonedx-npm<6.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade @cyclonedx/cyclonedx-npm to a version that resolves this vulnerability.

    Fixed in 6.0.0

Event History

Sep 17, 2026
CVE Published
via MITRE·02:35 PM
Data Sourced
via MITRE·02:35 PM
DescriptionWeakness

Frequently Asked Questions

1

Which environments are exposed to this issue?

The vulnerable code path is specific to Windows and is reached only when npm_execpath does not provide the npm CLI path, causing the tool to use its fallback npm execution path.

2

What must an attacker control to exploit the vulnerability?

An attacker must be able to influence the value supplied through the --workspace option. Exploitation also requires the Windows fallback npm execution path to be used.

3

What can be done if an immediate upgrade is not possible?

Avoid running the CLI with --workspace values influenced by untrusted users or inputs, and avoid the Windows fallback execution path where possible. Run the CLI with the least privileges necessary to limit the effect of command execution.

4

What is the remediation?

Upgrade @cyclonedx/cyclonedx-npm to version 6.0.0, which fixes the issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203