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

- Severity: High 8.5 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-06-19T20:47:48.000Z
- Modified: 2026-10-25T17:10:00.197Z
- Also known as: GHSA-v75r-vx73-82pj
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- CycloneDX cyclonedx-node-npm: >= 2.1.0, < 5.0.0
- @cyclonedx/cyclonedx-npm (npm): from 2.1.0 before 5.0.0

## Every score

- GitHub_M: CVSS:4.0 8.5 High `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`
- GitHub: CVSS:4.0 High `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`

## References

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

## Sources

- CVE List: [CVE-2026-55849](https://www.cve.org/CVERecord?id=CVE-2026-55849), CVE Terms of Use, modified 2026-07-09
- GitHub Advisory Database: [GHSA-v75r-vx73-82pj](https://github.com/advisories/GHSA-v75r-vx73-82pj), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-55849](https://nvd.nist.gov/vuln/detail/CVE-2026-55849), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-55849 · Whole record: https://cve.day/CVE-2026-55849.json · Rebuilt by cve.day 2026-11-25T22:59:27.454Z
