{"schemaVersion":4,"id":"CVE-2026-137197","aliases":[],"status":"published","duplicateOf":null,"title":"cross-spawn: Command injection on Windows when the command is not a plain program name or path","description":"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.","dates":{"published":"2026-11-30T20:33:32.360Z","modified":"2026-12-01T13:55:17.161Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00824,"percentile":0.58661,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-12-01T00:00:00.000Z","score":0.00824,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00824,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00824,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00824,"percentile":0.58661}],"last30":[{"date":"2026-12-01T00:00:00.000Z","score":0.00824,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00824,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00824,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00824,"percentile":0.58661}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command","description":"The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command before it is sent to a downstream component.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/78.html"}],"affected":[{"vendor":"moxystudio","product":"node-cross-spawn","name":"node-cross-spawn","label":"node-cross-spawn","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 6.0.8","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"6.0.8","endInclusive":false}},{"text":"≥ 7.0.0, < 7.1.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"7.0.0","startInclusive":true,"end":"7.1.1","endInclusive":false}}],"versionsText":"< 6.0.8 | ≥ 7.0.0, < 7.1.1","eol":null,"hubHref":"/vendor/moxystudio/node-cross-spawn"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-w3gc-668g-rf8f","label":"github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-w3gc-668g-rf8f","hostname":"github.com","tags":["X Refsource CONFIRM"]},{"url":"https://github.com/moxystudio/node-cross-spawn/pull/196","label":"github.com/moxystudio/node-cross-spawn/pull/196","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/moxystudio/node-cross-spawn/pull/197","label":"github.com/moxystudio/node-cross-spawn/pull/197","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/moxystudio/node-cross-spawn/commit/4a15965b05415e9f817315206771b25558804b16","label":"github.com/moxystudio/node-cross-spawn/commit/4a15965b05415e9f817315206771b25558804b16","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/moxystudio/node-cross-spawn/commit/d0ead352a7380492cbb0f6548fa86f19448323c9","label":"github.com/moxystudio/node-cross-spawn/commit/d0ead352a7380492cbb0f6548fa86f19448323c9","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.8","label":"github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.8","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.1","label":"github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.1","hostname":"github.com","tags":["X Refsource MISC"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-30T20:33:32.360Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-12-01T13:55:17.161Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"severe","reason":"Severe, CVSS 8.1 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)","nextStep":"Check applicability: affected before 6.0.8, 7.1.1 (CNA); fix release not confirmed","rank":[0,0,0,0,1,81],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00824,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-12-01T13:55:17.161Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-12-01T13:55:17.161Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-12-01T13:31:13.233Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00824,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T07:02:00.704Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T07:02:01.187Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T07:02:01.389Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T07:01:05.155Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T07:01:59.185Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T07:01:58.234Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T07:29:40.974Z","stale":false,"partial":false}}