npm package
cross-spawn 2.2.0 vulnerability, and the version that fixes it
cross-spawn 2.2.0 has 1 known vulnerability (1 rated high or critical); 6.0.6 fixes it.
npm (opens in a new tab) describes it as “Cross platform child_process#spawn and child_process#spawnSync”
- Known vulnerabilities
- 1
- 1 rated high or critical
- Released
- Apr 6, 2016
- Latest is 7.0.6
- Downloads last week
- 28
- Under 1% of cross-spawn downloads
- Licence
- MIT
- Pulls in
- 19 packages
- Resolved by deps.dev
What to upgrade to
6.0.6 is the closest release with no known vulnerabilities.
Newest 2.x release. Released Apr 13, 2016.
1 known vulnerability, worst rated warning6.0.6Upgrade to this
Fixes the known vulnerability. Released Nov 18, 2024.
No known vulnerabilitiesLatest release. Released Nov 18, 2024.
No known vulnerabilities
6.0.6 came out on Nov 18, 2024. A coding agent trained before then doesn’t know it exists, so it may suggest an older release. AI knowledge cutoff dates
Hand the fix to your coding agent
One task with the upgrade, the file to change and why. Paste it into Claude Code, Cursor or Codex.
Findings
- CriticalVulnerability
CVE-2024-21538 in cross-spawn 2.2.0
EPSS: top 43%Regular Expression Denial of Service (ReDoS) in cross-spawn. Fixed in 6.0.6.
- WarningOutdated
cross-spawn 2.2.0 is 5 major versions behind
Latest release is 7.0.6.
- LowOpenSSF Scorecard
indigounited/node-cross-spawn scores 3.2/10 on OpenSSF Scorecard
Weakest checks: Not actively maintained (Maintained 0/10); No branch protection (Branch-Protection 0/10); Over-privileged CI tokens (Token-Permissions 0/10). A low score means weaker upstream security practices, not a known vulnerability.
Every advisory for cross-spawn 2.2.0
Known exploited first (CISA KEV), then by how likely they are to be exploited (FIRST EPSS), then by severity. Each id links to its OSV.dev record.
CriticalCVE-2024-21538 on OSV.dev (opens in a new tab)GHSA-3xgq-45jj-v275EPSS: top 43%
Regular Expression Denial of Service (ReDoS) in cross-spawn
Fixed in 6.0.6. Published Nov 8, 2024.
Who is still on a vulnerable cross-spawn
10% of last week’s 276.6M cross-spawn downloads went to versions with known vulnerabilities.
From npm’s per-version download counts for the last 7 days, each version checked against OSV.dev. The versions checked cover over 99% of downloads.
Is cross-spawn the only one?
Paste a public GitHub repo or drop your package.json and see every vulnerable, end-of-life or deprecated dependency, with one fix task. Free, no sign-up.
How this page is checked
StackPrism asks OSV.dev which advisories affect exactly cross-spawn 2.2.0, merges duplicates filed under several ids, and ranks them with CISA’s Known Exploited Vulnerabilities list and FIRST EPSS. Release dates and deprecation come from deps.dev and npm. No AI writes this page: every sentence comes from that data, refreshed every few hours.
Last checked against npm, OSV.dev, deps.dev, CISA KEV and FIRST EPSS.