CyberRota Analysis
AI-GeneratedThe @cyclonedx/cyclonedx-npm tool, versions 2.1.0 through 4.x.x, is vulnerable due to improper sanitization of user-supplied --workspace values, which can lead to arbitrary OS command execution when the npm_execpath is unset or empty. This vulnerability poses a significant risk to users who invoke the CLI, as it allows attackers to execute commands with the privileges of the user running the tool. Organizations using affected versions should prioritize upgrading to version 5.0.0 or later to mitigate this risk.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
@cyclonedx/cyclonedx-npm creates CycloneDX Software Bill of Materials from npm projects. From 2.1.0 before 5.0.0, the CLI passes user-supplied --workspace values to a subshell without proper sanitization when npm_execpath is unset or empty, allowing arbitrary OS command execution with the privileges of the invoking user. This issue is fixed in version 5.0.0.