Skip to main content
← All vulnerabilities
CVE-2026-71538GHSA-Q69G-4HCV-6JG4

@cyclonedx/cyclonedx-npm: Shell Injection via Unsanitized --workspace Argument on Windows

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.0.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

@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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • CycloneDX cyclonedx-node-npm

    fixed in 6.0.0

  • @cyclonedx/cyclonedx-npmnpm

    fixed in 6.0.0

References 4

GitHub · CycloneDX/cyclonedx-node-npm