npm issue (Dec 1): cross-spawn Command Injection Vulnerability on Windows
Is it fixed? Not yet.
Ongoing since Dec 1, 02:58 UTC. First reported Dec 1, 02:58 UTC. Not on the vendor’s status page yet.
What happened
The cross-spawn npm package suffers from a critical command injection vulnerability on Windows when spawning batch files due to improper argument escaping during secondary parsing by cmd.exe. Affected users are advised to upgrade to version 7.1.0 or 6.0.7.
What caused it?
On Windows, cross-spawn runs non-executable commands such as batch files through cmd.exe and escapes arguments, but failed to properly account for cmd.exe parsing arguments a second time when forwarded via constructs like %*.
Source: github.com
No verified workaround yet
None of the linked reports describe a mitigation. This page updates when one appears.
Official fixOutage timeline
- Investigating(current)
- Workaround available(upcoming)
- Resolved(upcoming)
- First report on security advisory
cross-spawn: Command injection on Windows when spawning batch files
Source
Reports of this outage
1 report · 1 CVEShow
- [1]CVE First reportcross-spawn: Command injection on Windows when spawning batch files(opens security advisory in a new tab)
Fixed in: cross-spawn 7.1.0, cross-spawn 6.0.7. Critical severity (CVE-2026-137199). Affected: cross-spawn (npm) >= 7.0.0, < 7.1.0, < 6.0.7. ### Impact On Windows, `cross-spawn` runs commands that aren't executables (`.exe` or `.com`), such as batch files (`.bat` or `.cmd`), through `cmd.exe`, and escapes the command and its arguments for it. A batch file that forwards its arguments, e.g. with `%*`, makes `cmd.exe` parse them a second time. `cross-spawn` only accounted for that second parse…
by GitHub Advisory Database 0upvotes 0comments
npm issue FAQ
What happened in the npm issue, and why?
Ongoing since Dec 1, 02:58 UTC. The cause: On Windows, cross-spawn runs non-executable commands such as batch files through cmd.exe and escapes arguments, but failed to properly account for cmd.exe parsing arguments a second time when forwarded via constructs like %*.
What is affected by the npm issue?
npm (versions: >= 7.0.0, < 7.1.0, < 6.0.7).
When did the npm issue start and end?
It started Dec 1, 02:58 UTC and is still ongoing (7 h 58 min so far). This page updates as it develops.
How do I get alerts for npm?
Subscribe to the npm RSS feed for every new npm incident, or connect an AI assistant to WhatBrokeToday over MCP and ask whether npm is down. npm feed
Where does this information come from?
WhatBrokeToday collects public status pages, developer community reports and security advisories, groups the ones about the same problem, and links every report under Evidence on this page. This one has 1 report from 1 independent source.