Skip to main content

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

0
High
VulnerabilityCVE-2026-71538cvecve-2026-71538cwe-78
Published: 09/17/2026 (09/17/2026, 14:35:39 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. Prior to version 6.0.0, the Windows fallback path in src/npmRunner.ts, used when npm_execpath does not provide the npm CLI path, can construct a shell command containing an untrusted value from the --workspace option. When an attacker can influence that option and the fallback npm execution path is reached, shell metacharacters in the workspace value can execute arbitrary operating-system commands with the privileges of the user running the CLI, allowing data access, file modification, or service disruption. This issue is fixed in version 6.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-node-npm

Affected versions
<6.0.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/17/2026, 15:01:39 UTC

Technical Analysis

The vulnerability exists in the src/npmRunner.ts file of cyclonedx-node-npm versions before 6.0.0. When the npm_execpath environment variable does not provide the npm CLI path, the fallback path on Windows constructs a shell command using the --workspace option value without proper sanitization. If an attacker can influence this option, shell metacharacters can be injected, allowing arbitrary OS command execution with the privileges of the CLI user. This is classified as CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'). The vulnerability is resolved in version 6.0.0.

Potential Impact

Successful exploitation allows an attacker to execute arbitrary operating system commands with the privileges of the user running the cyclonedx-node-npm CLI. This can lead to unauthorized data access, file modification, or disruption of services on the affected system.

Mitigation Recommendations

Upgrade cyclonedx-node-npm to version 6.0.0 or later, where this vulnerability is fixed. No other mitigations are indicated by the vendor advisory.

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-08-06T21:24:15.375Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6aabfd7755bf5e2cf584aa13

Added to database: 09/17/2026, 14:47:19 UTC

Last enriched: 09/17/2026, 15:01:39 UTC

Last updated: 09/18/2026, 01:27:08 UTC

Views: 12

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