Search
Find a vulnerability
Search criteria
6 vulnerabilities found for node-cross-spawn by moxystudio
CVE-2026-137199 (GCVE-0-2026-137199)
Vulnerability from nvd – Published: 2026-11-30 20:39 – Updated: 2026-11-30 20:39
VLAI
EPSS
VEX
Title
cross-spawn: Command injection on Windows when spawning batch files
Summary
cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. Prior to 6.0.7 and 7.1.0, Windows applications that pass untrusted arguments to commands routed through cmd.exe can be vulnerable because cross-spawn did not account for the second cmd.exe parse performed when a batch file outside node_modules/.bin forwards its arguments. A crafted argument could break out of its quotes and execute arbitrary commands through npm.cmd, globally installed package shims, or user batch files. Trailing dots or spaces could bypass batch-file detection. A percent-delimited variable in an argument could be expanded when an environment variable with the same name followed by a caret existed, and an exclamation-delimited variable could be expanded when delayed expansion was enabled in the registry. Other platforms and the intentionally unescaped options.shell mode are not affected. This issue is fixed in versions 6.0.7 and 7.1.0.
Severity
CWE
- CWE-78 - Improper Neutralization of Special Elements used in an OS Command
Assigner
References
8 references
| URL | Tags |
|---|---|
| https://github.com/moxystudio/node-cross-spawn/se… | x_refsource_CONFIRM |
| https://github.com/moxystudio/node-cross-spawn/is… | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/pull/191 | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/pull/192 | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/co… | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/co… | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/re… | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/re… | x_refsource_MISC |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| moxystudio | node-cross-spawn |
Affected:
< 6.0.7
Affected: >= 7.0.0, < 7.1.0 |
{
"containers": {
"cna": {
"affected": [
{
"product": "node-cross-spawn",
"vendor": "moxystudio",
"versions": [
{
"status": "affected",
"version": "\u003c 6.0.7"
},
{
"status": "affected",
"version": "\u003e= 7.0.0, \u003c 7.1.0"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. Prior to 6.0.7 and 7.1.0, Windows applications that pass untrusted arguments to commands routed through cmd.exe can be vulnerable because cross-spawn did not account for the second cmd.exe parse performed when a batch file outside node_modules/.bin forwards its arguments. A crafted argument could break out of its quotes and execute arbitrary commands through npm.cmd, globally installed package shims, or user batch files. Trailing dots or spaces could bypass batch-file detection. A percent-delimited variable in an argument could be expanded when an environment variable with the same name followed by a caret existed, and an exclamation-delimited variable could be expanded when delayed expansion was enabled in the registry. Other platforms and the intentionally unescaped options.shell mode are not affected. This issue is fixed in versions 6.0.7 and 7.1.0."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "HIGH",
"attackRequirements": "PRESENT",
"attackVector": "NETWORK",
"baseScore": 9.2,
"baseSeverity": "CRITICAL",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"vectorString": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "HIGH",
"vulnConfidentialityImpact": "HIGH",
"vulnIntegrityImpact": "HIGH"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-78",
"description": "CWE-78: Improper Neutralization of Special Elements used in an OS Command",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-30T20:39:53.636Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-ghv9-86vm-4v8m",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-ghv9-86vm-4v8m"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/issues/171",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/issues/171"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/pull/191",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/pull/191"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/pull/192",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/pull/192"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/commit/1b71aa519a2e4f97d1f3ee27f0e2fc24ba17cf1a",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/commit/1b71aa519a2e4f97d1f3ee27f0e2fc24ba17cf1a"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/commit/244ffeaa8473de0080c93ebbf779bb953b94114b",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/commit/244ffeaa8473de0080c93ebbf779bb953b94114b"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.7",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.7"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.0",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.0"
}
],
"source": {
"advisory": "GHSA-ghv9-86vm-4v8m",
"discovery": "UNKNOWN"
},
"title": "cross-spawn: Command injection on Windows when spawning batch files"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-137199",
"datePublished": "2026-11-30T20:39:53.636Z",
"dateReserved": "2026-11-25T21:33:08.027Z",
"dateUpdated": "2026-11-30T20:39:53.636Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-137198 (GCVE-0-2026-137198)
Vulnerability from nvd – Published: 2026-11-30 20:36 – Updated: 2026-12-01 13:37
VLAI
EPSS
VEX
Title
cross-spawn: Argument injection on Windows via backslashes before a double quote
Summary
cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. From 6.0.6 until 6.0.7 and from 7.0.4 until 7.1.0, Windows applications that pass untrusted arguments to commands routed through cmd.exe can be vulnerable because cross-spawn did not correctly double runs of backslashes before a double quote or at the end of an argument. Two or more backslashes could escape the argument's closing quote, allowing attacker-controlled text to become extra arguments or consume following arguments. The caller may not detect the injection when the target accepts the resulting arguments and exits successfully, while a target that rejects an unexpected argument can fail instead. The affected command class includes npm cmd-shims in node_modules/.bin. This can change a target program's operation, although it does not by itself execute a second command and does not affect other platforms. This issue is fixed in versions 6.0.7 and 7.1.0.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-12-01 13:34 UTC
CWE
- CWE-88 - Improper Neutralization of Argument Delimiters in a Command
Assigner
References
7 references
| URL | Tags |
|---|---|
| https://github.com/moxystudio/node-cross-spawn/se… | x_refsource_CONFIRM |
| https://github.com/moxystudio/node-cross-spawn/pull/191 | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/pull/192 | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/co… | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/co… | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/re… | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/re… | x_refsource_MISC |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| moxystudio | node-cross-spawn |
Affected:
>= 6.0.6, < 6.0.7
Affected: >= 7.0.4, < 7.1.0 |
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-137198",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-12-01T13:34:20.384736Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-12-01T13:37:26.325Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "node-cross-spawn",
"vendor": "moxystudio",
"versions": [
{
"status": "affected",
"version": "\u003e= 6.0.6, \u003c 6.0.7"
},
{
"status": "affected",
"version": "\u003e= 7.0.4, \u003c 7.1.0"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. From 6.0.6 until 6.0.7 and from 7.0.4 until 7.1.0, Windows applications that pass untrusted arguments to commands routed through cmd.exe can be vulnerable because cross-spawn did not correctly double runs of backslashes before a double quote or at the end of an argument. Two or more backslashes could escape the argument\u0027s closing quote, allowing attacker-controlled text to become extra arguments or consume following arguments. The caller may not detect the injection when the target accepts the resulting arguments and exits successfully, while a target that rejects an unexpected argument can fail instead. The affected command class includes npm cmd-shims in node_modules/.bin. This can change a target program\u0027s operation, although it does not by itself execute a second command and does not affect other platforms. This issue is fixed in versions 6.0.7 and 7.1.0."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "HIGH",
"attackRequirements": "PRESENT",
"attackVector": "NETWORK",
"baseScore": 8.3,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"vectorString": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-88",
"description": "CWE-88: Improper Neutralization of Argument Delimiters in a Command",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-30T20:36:20.211Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-m6qr-m48x-3xhh",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-m6qr-m48x-3xhh"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/pull/191",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/pull/191"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/pull/192",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/pull/192"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/commit/1b71aa519a2e4f97d1f3ee27f0e2fc24ba17cf1a",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/commit/1b71aa519a2e4f97d1f3ee27f0e2fc24ba17cf1a"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/commit/244ffeaa8473de0080c93ebbf779bb953b94114b",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/commit/244ffeaa8473de0080c93ebbf779bb953b94114b"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.7",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.7"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.0",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.0"
}
],
"source": {
"advisory": "GHSA-m6qr-m48x-3xhh",
"discovery": "UNKNOWN"
},
"title": "cross-spawn: Argument injection on Windows via backslashes before a double quote"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-137198",
"datePublished": "2026-11-30T20:36:20.211Z",
"dateReserved": "2026-11-25T21:33:08.027Z",
"dateUpdated": "2026-12-01T13:37:26.325Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-137197 (GCVE-0-2026-137197)
Vulnerability from nvd – Published: 2026-11-30 20:33 – Updated: 2026-12-01 13:55
VLAI
EPSS
VEX
Title
cross-spawn: Command injection on Windows when the command is not a plain program name or path
Summary
cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. Prior to 6.0.8 and 7.1.1, applications running on Windows that pass untrusted arguments can be vulnerable when a command sent through cmd.exe is not written as a plain program name or path. Commands containing quotes, command-name delimiters, trailing whitespace, or a child-specific PATHEXT could cause cross-spawn to miss that cmd.exe would resolve a batch file. The arguments were then escaped as though the target were a regular program, allowing command metacharacters in an argument to be interpreted by cmd.exe and execute arbitrary commands. Applications are affected only when they use one of these command forms and pass untrusted input as arguments. This issue is fixed in versions 6.0.8 and 7.1.1.
Severity
8.1 (High)
SSVC
Exploitation: none
Automatable: no
Technical Impact: total
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-12-01 13:31 UTC
CWE
- CWE-78 - Improper Neutralization of Special Elements used in an OS Command
Assigner
References
7 references
| URL | Tags |
|---|---|
| https://github.com/moxystudio/node-cross-spawn/se… | x_refsource_CONFIRM |
| https://github.com/moxystudio/node-cross-spawn/pull/196 | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/pull/197 | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/co… | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/co… | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/re… | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/re… | x_refsource_MISC |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| moxystudio | node-cross-spawn |
Affected:
< 6.0.8
Affected: >= 7.0.0, < 7.1.1 |
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-137197",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-12-01T13:31:13.233669Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-12-01T13:55:17.161Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "node-cross-spawn",
"vendor": "moxystudio",
"versions": [
{
"status": "affected",
"version": "\u003c 6.0.8"
},
{
"status": "affected",
"version": "\u003e= 7.0.0, \u003c 7.1.1"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. Prior to 6.0.8 and 7.1.1, applications running on Windows that pass untrusted arguments can be vulnerable when a command sent through cmd.exe is not written as a plain program name or path. Commands containing quotes, command-name delimiters, trailing whitespace, or a child-specific PATHEXT could cause cross-spawn to miss that cmd.exe would resolve a batch file. The arguments were then escaped as though the target were a regular program, allowing command metacharacters in an argument to be interpreted by cmd.exe and execute arbitrary commands. Applications are affected only when they use one of these command forms and pass untrusted input as arguments. This issue is fixed in versions 6.0.8 and 7.1.1."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "HIGH",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 8.1,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-78",
"description": "CWE-78: Improper Neutralization of Special Elements used in an OS Command",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-30T20:33:32.360Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-w3gc-668g-rf8f",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-w3gc-668g-rf8f"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/pull/196",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/pull/196"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/pull/197",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/pull/197"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/commit/4a15965b05415e9f817315206771b25558804b16",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/commit/4a15965b05415e9f817315206771b25558804b16"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/commit/d0ead352a7380492cbb0f6548fa86f19448323c9",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/commit/d0ead352a7380492cbb0f6548fa86f19448323c9"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.8",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.8"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.1",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.1"
}
],
"source": {
"advisory": "GHSA-w3gc-668g-rf8f",
"discovery": "UNKNOWN"
},
"title": "cross-spawn: Command injection on Windows when the command is not a plain program name or path"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-137197",
"datePublished": "2026-11-30T20:33:32.360Z",
"dateReserved": "2026-11-25T21:33:08.027Z",
"dateUpdated": "2026-12-01T13:55:17.161Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-137199 (GCVE-0-2026-137199)
Vulnerability from cvelistv5 – Published: 2026-11-30 20:39 – Updated: 2026-11-30 20:39
VLAI
EPSS
VEX
Title
cross-spawn: Command injection on Windows when spawning batch files
Summary
cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. Prior to 6.0.7 and 7.1.0, Windows applications that pass untrusted arguments to commands routed through cmd.exe can be vulnerable because cross-spawn did not account for the second cmd.exe parse performed when a batch file outside node_modules/.bin forwards its arguments. A crafted argument could break out of its quotes and execute arbitrary commands through npm.cmd, globally installed package shims, or user batch files. Trailing dots or spaces could bypass batch-file detection. A percent-delimited variable in an argument could be expanded when an environment variable with the same name followed by a caret existed, and an exclamation-delimited variable could be expanded when delayed expansion was enabled in the registry. Other platforms and the intentionally unescaped options.shell mode are not affected. This issue is fixed in versions 6.0.7 and 7.1.0.
Severity
CWE
- CWE-78 - Improper Neutralization of Special Elements used in an OS Command
Assigner
References
8 references
| URL | Tags |
|---|---|
| https://github.com/moxystudio/node-cross-spawn/se… | x_refsource_CONFIRM |
| https://github.com/moxystudio/node-cross-spawn/is… | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/pull/191 | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/pull/192 | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/co… | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/co… | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/re… | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/re… | x_refsource_MISC |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| moxystudio | node-cross-spawn |
Affected:
< 6.0.7
Affected: >= 7.0.0, < 7.1.0 |
{
"containers": {
"cna": {
"affected": [
{
"product": "node-cross-spawn",
"vendor": "moxystudio",
"versions": [
{
"status": "affected",
"version": "\u003c 6.0.7"
},
{
"status": "affected",
"version": "\u003e= 7.0.0, \u003c 7.1.0"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. Prior to 6.0.7 and 7.1.0, Windows applications that pass untrusted arguments to commands routed through cmd.exe can be vulnerable because cross-spawn did not account for the second cmd.exe parse performed when a batch file outside node_modules/.bin forwards its arguments. A crafted argument could break out of its quotes and execute arbitrary commands through npm.cmd, globally installed package shims, or user batch files. Trailing dots or spaces could bypass batch-file detection. A percent-delimited variable in an argument could be expanded when an environment variable with the same name followed by a caret existed, and an exclamation-delimited variable could be expanded when delayed expansion was enabled in the registry. Other platforms and the intentionally unescaped options.shell mode are not affected. This issue is fixed in versions 6.0.7 and 7.1.0."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "HIGH",
"attackRequirements": "PRESENT",
"attackVector": "NETWORK",
"baseScore": 9.2,
"baseSeverity": "CRITICAL",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"vectorString": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "HIGH",
"vulnConfidentialityImpact": "HIGH",
"vulnIntegrityImpact": "HIGH"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-78",
"description": "CWE-78: Improper Neutralization of Special Elements used in an OS Command",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-30T20:39:53.636Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-ghv9-86vm-4v8m",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-ghv9-86vm-4v8m"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/issues/171",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/issues/171"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/pull/191",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/pull/191"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/pull/192",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/pull/192"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/commit/1b71aa519a2e4f97d1f3ee27f0e2fc24ba17cf1a",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/commit/1b71aa519a2e4f97d1f3ee27f0e2fc24ba17cf1a"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/commit/244ffeaa8473de0080c93ebbf779bb953b94114b",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/commit/244ffeaa8473de0080c93ebbf779bb953b94114b"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.7",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.7"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.0",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.0"
}
],
"source": {
"advisory": "GHSA-ghv9-86vm-4v8m",
"discovery": "UNKNOWN"
},
"title": "cross-spawn: Command injection on Windows when spawning batch files"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-137199",
"datePublished": "2026-11-30T20:39:53.636Z",
"dateReserved": "2026-11-25T21:33:08.027Z",
"dateUpdated": "2026-11-30T20:39:53.636Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-137198 (GCVE-0-2026-137198)
Vulnerability from cvelistv5 – Published: 2026-11-30 20:36 – Updated: 2026-12-01 13:37
VLAI
EPSS
VEX
Title
cross-spawn: Argument injection on Windows via backslashes before a double quote
Summary
cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. From 6.0.6 until 6.0.7 and from 7.0.4 until 7.1.0, Windows applications that pass untrusted arguments to commands routed through cmd.exe can be vulnerable because cross-spawn did not correctly double runs of backslashes before a double quote or at the end of an argument. Two or more backslashes could escape the argument's closing quote, allowing attacker-controlled text to become extra arguments or consume following arguments. The caller may not detect the injection when the target accepts the resulting arguments and exits successfully, while a target that rejects an unexpected argument can fail instead. The affected command class includes npm cmd-shims in node_modules/.bin. This can change a target program's operation, although it does not by itself execute a second command and does not affect other platforms. This issue is fixed in versions 6.0.7 and 7.1.0.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-12-01 13:34 UTC
CWE
- CWE-88 - Improper Neutralization of Argument Delimiters in a Command
Assigner
References
7 references
| URL | Tags |
|---|---|
| https://github.com/moxystudio/node-cross-spawn/se… | x_refsource_CONFIRM |
| https://github.com/moxystudio/node-cross-spawn/pull/191 | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/pull/192 | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/co… | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/co… | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/re… | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/re… | x_refsource_MISC |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| moxystudio | node-cross-spawn |
Affected:
>= 6.0.6, < 6.0.7
Affected: >= 7.0.4, < 7.1.0 |
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-137198",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-12-01T13:34:20.384736Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-12-01T13:37:26.325Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "node-cross-spawn",
"vendor": "moxystudio",
"versions": [
{
"status": "affected",
"version": "\u003e= 6.0.6, \u003c 6.0.7"
},
{
"status": "affected",
"version": "\u003e= 7.0.4, \u003c 7.1.0"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. From 6.0.6 until 6.0.7 and from 7.0.4 until 7.1.0, Windows applications that pass untrusted arguments to commands routed through cmd.exe can be vulnerable because cross-spawn did not correctly double runs of backslashes before a double quote or at the end of an argument. Two or more backslashes could escape the argument\u0027s closing quote, allowing attacker-controlled text to become extra arguments or consume following arguments. The caller may not detect the injection when the target accepts the resulting arguments and exits successfully, while a target that rejects an unexpected argument can fail instead. The affected command class includes npm cmd-shims in node_modules/.bin. This can change a target program\u0027s operation, although it does not by itself execute a second command and does not affect other platforms. This issue is fixed in versions 6.0.7 and 7.1.0."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "HIGH",
"attackRequirements": "PRESENT",
"attackVector": "NETWORK",
"baseScore": 8.3,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"vectorString": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-88",
"description": "CWE-88: Improper Neutralization of Argument Delimiters in a Command",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-30T20:36:20.211Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-m6qr-m48x-3xhh",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-m6qr-m48x-3xhh"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/pull/191",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/pull/191"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/pull/192",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/pull/192"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/commit/1b71aa519a2e4f97d1f3ee27f0e2fc24ba17cf1a",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/commit/1b71aa519a2e4f97d1f3ee27f0e2fc24ba17cf1a"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/commit/244ffeaa8473de0080c93ebbf779bb953b94114b",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/commit/244ffeaa8473de0080c93ebbf779bb953b94114b"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.7",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.7"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.0",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.0"
}
],
"source": {
"advisory": "GHSA-m6qr-m48x-3xhh",
"discovery": "UNKNOWN"
},
"title": "cross-spawn: Argument injection on Windows via backslashes before a double quote"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-137198",
"datePublished": "2026-11-30T20:36:20.211Z",
"dateReserved": "2026-11-25T21:33:08.027Z",
"dateUpdated": "2026-12-01T13:37:26.325Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-137197 (GCVE-0-2026-137197)
Vulnerability from cvelistv5 – Published: 2026-11-30 20:33 – Updated: 2026-12-01 13:55
VLAI
EPSS
VEX
Title
cross-spawn: Command injection on Windows when the command is not a plain program name or path
Summary
cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. Prior to 6.0.8 and 7.1.1, applications running on Windows that pass untrusted arguments can be vulnerable when a command sent through cmd.exe is not written as a plain program name or path. Commands containing quotes, command-name delimiters, trailing whitespace, or a child-specific PATHEXT could cause cross-spawn to miss that cmd.exe would resolve a batch file. The arguments were then escaped as though the target were a regular program, allowing command metacharacters in an argument to be interpreted by cmd.exe and execute arbitrary commands. Applications are affected only when they use one of these command forms and pass untrusted input as arguments. This issue is fixed in versions 6.0.8 and 7.1.1.
Severity
8.1 (High)
SSVC
Exploitation: none
Automatable: no
Technical Impact: total
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-12-01 13:31 UTC
CWE
- CWE-78 - Improper Neutralization of Special Elements used in an OS Command
Assigner
References
7 references
| URL | Tags |
|---|---|
| https://github.com/moxystudio/node-cross-spawn/se… | x_refsource_CONFIRM |
| https://github.com/moxystudio/node-cross-spawn/pull/196 | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/pull/197 | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/co… | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/co… | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/re… | x_refsource_MISC |
| https://github.com/moxystudio/node-cross-spawn/re… | x_refsource_MISC |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| moxystudio | node-cross-spawn |
Affected:
< 6.0.8
Affected: >= 7.0.0, < 7.1.1 |
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-137197",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-12-01T13:31:13.233669Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-12-01T13:55:17.161Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "node-cross-spawn",
"vendor": "moxystudio",
"versions": [
{
"status": "affected",
"version": "\u003c 6.0.8"
},
{
"status": "affected",
"version": "\u003e= 7.0.0, \u003c 7.1.1"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. Prior to 6.0.8 and 7.1.1, applications running on Windows that pass untrusted arguments can be vulnerable when a command sent through cmd.exe is not written as a plain program name or path. Commands containing quotes, command-name delimiters, trailing whitespace, or a child-specific PATHEXT could cause cross-spawn to miss that cmd.exe would resolve a batch file. The arguments were then escaped as though the target were a regular program, allowing command metacharacters in an argument to be interpreted by cmd.exe and execute arbitrary commands. Applications are affected only when they use one of these command forms and pass untrusted input as arguments. This issue is fixed in versions 6.0.8 and 7.1.1."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "HIGH",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 8.1,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-78",
"description": "CWE-78: Improper Neutralization of Special Elements used in an OS Command",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-30T20:33:32.360Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-w3gc-668g-rf8f",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-w3gc-668g-rf8f"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/pull/196",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/pull/196"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/pull/197",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/pull/197"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/commit/4a15965b05415e9f817315206771b25558804b16",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/commit/4a15965b05415e9f817315206771b25558804b16"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/commit/d0ead352a7380492cbb0f6548fa86f19448323c9",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/commit/d0ead352a7380492cbb0f6548fa86f19448323c9"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.8",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.8"
},
{
"name": "https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.1",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.1"
}
],
"source": {
"advisory": "GHSA-w3gc-668g-rf8f",
"discovery": "UNKNOWN"
},
"title": "cross-spawn: Command injection on Windows when the command is not a plain program name or path"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-137197",
"datePublished": "2026-11-30T20:33:32.360Z",
"dateReserved": "2026-11-25T21:33:08.027Z",
"dateUpdated": "2026-12-01T13:55:17.161Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}