PT-2026-94347 · Npm · Cyclonedx-Npm
CVSS v4.0
8.5
High
| Vector | AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
@cyclonedx/cyclonedx-npm versions prior to 6.0.0
Description
A command injection issue exists on Windows systems when the CLI is used with the
--workspace option. In the fallback path within src/npmRunner.ts (triggered when npm execpath does not provide the npm CLI path), the tool constructs a shell command using the untrusted value from the --workspace option without proper neutralization. An attacker capable of influencing this value can use shell metacharacters to execute arbitrary operating-system commands with the privileges of the user running the CLI, potentially leading to data access, file modification, or service disruption.Recommendations
Update to version 6.0.0 or later.
As a temporary mitigation, ensure the
npm execpath environment variable is set to npm-cli.js before invoking the tool.
Avoid passing untrusted or user-controlled values to the --workspace option.Exploit
Fix
OS Command Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Cyclonedx-Npm