Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-71538— @cyclonedx/cyclonedx-npm: Shell Injection via Unsanitized --workspace Argument on Windows

Quick assessment

Affected
CycloneDX cyclonedx-node-npm
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

用于从 npm 项目中生成 CycloneDX 软件物料清单(SBOM)。在 6.0.0 版本之前, 中的 Windows 回退路径(在 未能提供 npm CLI 路径时使用)可能会构造出包含来自 选项中不可信值的 shell 命令。当攻击者能够影响该选项值,且触发了回退的 npm 执行路径时,workspace 值中的 shell 元字符可能导致以运行 CLI 的用户权限执行任意操作系统命令,从而导致数据泄露、文件被修改或服务中断。该问题已在 6.0.0 版本中修复。

CVSS 8.5 · High

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-71538

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
@cyclonedx/cyclonedx-npm: Shell Injection via Unsanitized --workspace Argument on Windows
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
CycloneDX cyclonedx-node-npm < 6.0.0 -

II. Public POCs for CVE-2026-71538

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-71538

登录查看更多情报信息。

Patches & Fixes for CVE-2026-71538 (2)

Vendor Advisories for CVE-2026-71538 (1)

Vendor Pages for CVE-2026-71538 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-71538

No comments yet


Leave a comment