@cyclonedx/cyclonedx-npm: Shell Injection via Unsanitized --workspace Argument on Windows
@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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-71538
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 01:15 UTC · Revision 1
Source evidence
@cyclonedx/cyclonedx-npm: Shell Injection via Unsanitized --workspace Argument on Windows
core-osv · Original sourcePublished 17 Sept 2026, 14:35 UTC
@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.
osv:CVE-2026-71538
Complete source record
{
"id": "a9ec4e4078d63060e2adc8165f21d03a4d248343debd1d25f63a4f1bd0ed7887",
"url": "https://osv.dev/vulnerability/CVE-2026-71538",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "@cyclonedx/cyclonedx-npm: Shell Injection via Unsanitized --workspace Argument on Windows",
"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.",
"evidence": "osv:CVE-2026-71538",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-71538",
"aliases": [
"CVE-2026-71538",
"GHSA-q69g-4hcv-6jg4"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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": [
{
"ranges": [
{
"repo": "https://github.com/cyclonedx/cyclonedx-node-npm",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "e16960691fc8e09f8df3bd2e0b3e3828f859ab94"
},
{
"fixed": "15d3beb5bcd2b0b6eccfdf31192f5103b3f12c0f"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "6.0.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "15d3beb5bcd2b0b6eccfdf31192f5103b3f12c0f"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "e16960691fc8e09f8df3bd2e0b3e3828f859ab94"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v6.0.0"
}
]
}
}
],
"versions": [
"v5.0.0",
"v4.2.1",
"v4.2.0",
"v4.1.2",
"v4.1.1",
"v4.1.1-rc.0",
"v4.1.0",
"v4.0.3",
"v4.0.2",
"v4.0.1",
"v4.0.0",
"v3.1.0",
"v3.0.0",
"v2.1.0",
"v2.0.0",
"v1.20.0",
"v1.19.3",
"v1.19.2",
"v1.19.0",
"v1.18.0",
"v1.17.0",
"v1.16.2",
"v1.16.1",
"v1.16.0",
"v1.15.0",
"v1.14.3",
"v1.14.2",
"v1.14.1",
"v1.14.0",
"v1.13.3",
"v1.13.2",
"v1.13.1",
"v1.13.0",
"v1.12.1",
"v1.12.0",
"v1.11.0",
"v1.10.0",
"v1.9.2",
"v1.9.1",
"v1.9.0",
"v1.8.0",
"v1.7.5",
"v1.7.4",
"v1.7.3",
"v1.7.2",
"v1.7.1",
"v1.7.0",
"v1.6.1",
"v1.6.0",
"v1.5.0",
"v1.4.1",
"v1.4.0",
"v1.3.0",
"v1.2.0",
"v1.1.0",
"v1.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-71538.json"
}
}
],
"modified": "2026-10-28T02:30:24.982047961Z",
"provider": "osv",
"references": [
"https://github.com/CycloneDX/cyclonedx-node-npm/releases/tag/v6.0.0",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/71xxx/CVE-2026-71538.json",
"https://github.com/CycloneDX/cyclonedx-node-npm/security/advisories/GHSA-q69g-4hcv-6jg4",
"https://nvd.nist.gov/vuln/detail/CVE-2026-71538",
"https://github.com/CycloneDX/cyclonedx-node-npm/commit/15d3beb5bcd2b0b6eccfdf31192f5103b3f12c0f",
"https://github.com/CycloneDX/cyclonedx-node-npm/pull/1489"
],
"provider_metadata": {
"cwe_ids": [
"CWE-78"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/71xxx/CVE-2026-71538.json"
}
},
"related_cves": [
{
"value": "CVE-2026-71538",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 491509,
"published_at": "2026-09-17T14:35:39.144+00:00"
}