---
id: CVE-2026-71538
title: >-
  @cyclonedx/cyclonedx-npm creates CycloneDX Software Bill of Materials from npm
  projects
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 she…
severity: high
cvss: 8.5
cvssVector: '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'
cwe:
  - CWE-78
vendor: CycloneDX
product: cyclonedx-node-npm
affected:
  - cyclonedx-node-npm < 6.0.0
patched:
  - '@cyclonedx/cyclonedx-npm 6.0.0'
published: '2026-09-17'
updated: '2026-09-17'
sourceUpdated: '2026-09-17T16:17:41.190'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-71538'
references:
  - url: >-
      https://github.com/CycloneDX/cyclonedx-node-npm/commit/15d3beb5bcd2b0b6eccfdf31192f5103b3f12c0f
    label: security-advisories@github.com
  - url: 'https://github.com/CycloneDX/cyclonedx-node-npm/pull/1489'
    label: security-advisories@github.com
  - url: 'https://github.com/CycloneDX/cyclonedx-node-npm/releases/tag/v6.0.0'
    label: security-advisories@github.com
  - url: >-
      https://github.com/CycloneDX/cyclonedx-node-npm/security/advisories/GHSA-q69g-4hcv-6jg4
    label: security-advisories@github.com
  - url: 'https://github.com/advisories/GHSA-q69g-4hcv-6jg4'
tags:
  - nvd
  - cve.org
  - ghsa
  - npm
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-09-17T15:30:43.634432Z'
cvssSource: cna
aliases:
  - GHSA-q69g-4hcv-6jg4
ecosystem: npm
ingestedAt: '2026-09-17T15:20:38.997Z'
epss: 0.00212
epssPercentile: 0.10219
---

## Overview

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

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-71538)

Affected packages:

- `@cyclonedx/cyclonedx-npm < 6.0.0`

Patched in:

- `@cyclonedx/cyclonedx-npm 6.0.0`

Source: https://github.com/advisories/GHSA-q69g-4hcv-6jg4
