Command Injection Affecting @cyclonedx/cyclonedx-npm package, versions <6.0.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.21% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-CYCLONEDXCYCLONEDXNPM-20158546
  • published27 Sept 2026
  • disclosed17 Sept 2026
  • creditUnknown

Introduced: 17 Sep 2026

NewCVE-2026-71538  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade @cyclonedx/cyclonedx-npm to version 6.0.0 or higher.

Overview

@cyclonedx/cyclonedx-npm is a Create CycloneDX Software Bill of Materials (SBOM) from NPM projects.

Affected versions of this package are vulnerable to Command Injection via the --workspace argument on Windows systems. An attacker can execute arbitrary operating system commands by supplying specially crafted input to the --workspace parameter when invoking the CLI. This is only exploitable if the tool is run on a Windows host and the attacker can influence the value passed to --workspace.

Workaround

This vulnerability can be mitigated by setting the environment variable npm_execpath to a npm-cli.js before invoking the tool or by avoiding passing untrusted values to the --workspace option.

CVSS Base Scores

version 4.0
version 3.1