Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 94%

CVE-2026-55849: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in CycloneDX cyclonedx-node-npm

0
High
VulnerabilityCVE-2026-55849cvecve-2026-55849cwe-78
Published: 07/08/2026 (07/08/2026, 21:10:15 UTC)
Source: CVE Database V5
Vendor/Project: CycloneDX
Product: cyclonedx-node-npm

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 v4.0

Score 8.5high

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

@cyclonedx/cyclonedx-npm
pkg:npm/@cyclonedx/cyclonedx-npm
Affected versions
<5.0.0 >=2.1.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/16/2026, 09:59:13 UTC

Technical Analysis

The cyclonedx-node-npm package, used to create CycloneDX Software Bill of Materials from npm projects, contains an OS command injection vulnerability (CWE-78) in versions >=2.1.0 and <5.0.0. The vulnerability arises because the CLI passes user-supplied --workspace parameters directly to a subshell without sanitization if the environment variable npm_execpath is unset or empty. This allows an attacker to execute arbitrary OS commands with the privileges of the user running the tool. The vulnerability is addressed in version 5.0.0.

Potential Impact

An attacker who can supply the --workspace parameter in the affected versions can execute arbitrary operating system commands with the privileges of the user invoking the cyclonedx-node-npm CLI, potentially leading to system compromise or unauthorized actions. There are no known exploits in the wild as of the published date.

Mitigation Recommendations

Upgrade to cyclonedx-node-npm version 5.0.0 or later, where this vulnerability is fixed. No other official remediation or temporary fixes are documented. Patch status is not explicitly stated but the fix is included in version 5.0.0.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-17T16:44:40.994Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a4ec4a5c9d9e3dbe3c8d497

Added to database: 07/08/2026, 21:44:05 UTC

Last enriched: 07/16/2026, 09:59:13 UTC

Last updated: 08/19/2026, 22:52:13 UTC

Views: 81

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses