CVE-2026-55849
Received Received - Intake

Command Injection in CycloneDX npm CLI

Vulnerability report for CVE-2026-55849, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-08

Last updated on: 2026-07-08

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-08
Last Modified
2026-07-08
Generated
2026-07-09
AI Q&A
2026-07-09
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
cyclonedx cyclonedx-npm From 2.1.0 (inc) to 5.0.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

The vulnerability exists in the @cyclonedx/cyclonedx-npm package versions from 2.1.0 up to but not including 5.0.0. The command line interface (CLI) passes user-supplied --workspace values to a subshell without properly sanitizing them when the npm_execpath environment variable is unset or empty. This improper sanitization allows an attacker to execute arbitrary operating system commands with the privileges of the user running the CLI.

The issue is resolved in version 5.0.0 of the package.

Impact Analysis

This vulnerability can allow an attacker to execute arbitrary OS commands with the same privileges as the user invoking the CLI. This could lead to unauthorized actions such as data theft, modification, deletion, or further compromise of the system depending on the user's permissions.

Mitigation Strategies

To mitigate this vulnerability, upgrade @cyclonedx/cyclonedx-npm to version 5.0.0 or later, where the issue is fixed.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-55849. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart