{"id":"CVE-2026-71538","published":"2026-09-17T14:35:39Z","modified":"2026-09-17T15:30:52Z","title":"@cyclonedx/cyclonedx-npm: Shell Injection via Unsanitized --workspace Argument on Windows","vendor":"CycloneDX","product":"cyclonedx-node-npm","tier":"tail","description":{"text":"@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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.5,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00212,"percentile":0.06533,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/CycloneDX/cyclonedx-node-npm/security/advisories/GHSA-q69g-4hcv-6jg4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/CycloneDX/cyclonedx-node-npm/pull/1489","tags":["x_refsource_MISC"]},{"url":"https://github.com/CycloneDX/cyclonedx-node-npm/commit/15d3beb5bcd2b0b6eccfdf31192f5103b3f12c0f","tags":["x_refsource_MISC"]},{"url":"https://github.com/CycloneDX/cyclonedx-node-npm/releases/tag/v6.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":7.3,"factors":[{"name":"EPSS percentile","points":1.31},{"name":"CVSS severity","points":5.95}]},"vendorSlug":"cyclonedx","affectedVersions":[{"vendor":"CycloneDX","product":"cyclonedx-node-npm","versions":["< 6.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-09-17T15:30:43.634432Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@cyclonedx/cyclonedx-npm","vulnerableRanges":["<6.0.0"],"patched":["6.0.0"],"from":["GHSA-q69g-4hcv-6jg4"],"provenance":"source"}],"summary":{"text":"In @cyclonedx/cyclonedx-npm (product cyclonedx-node-npm, by CycloneDX), 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 build a shell command that includes an untrusted value from the --workspace option. An attacker who can influence that option, and where the fallback npm execution path is reached, can use shell metacharacters in the workspace value to run arbitrary OS commands with the privileges of the user running the CLI, which requires user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:08:38Z"},"euvd":{"id":"EUVD-2026-81665","exploited":false,"provenance":"source"}}