CVE-2026-55849 PUBLISHED

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

Assigner: GitHub_M
Reserved: 17.06.2026 Published: 08.07.2026 Updated: 08.07.2026

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

Metrics

CVSS Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS Score: 8.5

Product Status

Vendor CycloneDX
Product cyclonedx-node-npm
Versions
  • Version >= 2.1.0, < 5.0.0 is affected

References

Problem Types

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') CWE