Advisories for Npm/@Cyclonedx/Cyclonedx-Npm package

2026

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

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].

@cyclonedx/cyclonedx-npm: Shell Injection via Unsanitized --workspace Argument

A command injection vulnerability exists in @cyclonedx/cyclonedx-npm when the CLI is invoked with the –workspace <value> option while the environment variable npm_execpath is unset or empty. User‑supplied –workspace values are passed to a subshell without proper sanitization, enabling attackers to inject arbitrary OS commands. This issue corresponds to CWE‑78: Improper Neutralization of Special Elements used in an OS Command. The vulnerability was fixed in version [5.0.0][v5.0.0].