Is cross-spawn 7.0.3 vulnerable?
cross-spawn 7.0.3, a JavaScript package on npm. All 2 versions we track · npm page
Upgrade cross-spawn from 7.0.3 to 7.0.5 or later.
Known vulnerabilities in cross-spawn 7.0.3
-
High
CVSS 7.5
CVE-2024-21538: Regular Expression Denial of Service (ReDoS) in cross-spawn
GHSA-3xgq-45jj-v275 · published 8 Nov 2024 · fixed in 7.0.5
How to fix it
With package-lock.json:
npm install cross-spawn@7.0.5
# if it is an indirect dependency: npm update cross-spawn (or npm audit fix)
- If it is an indirect dependency, upgrade the package that depends on it, or force the version with "overrides" (npm), "resolutions" (Yarn) or "pnpm.overrides" (pnpm) in package.json.
- Check the package's changelog for breaking changes (especially across major versions), update the lockfile with the package manager (never by hand), and run your tests.
Other versions of cross-spawn
Newest version we track without known advisories: 7.0.6.
| Version | Known vulnerabilities | Highest severity |
|---|---|---|
| 7.0.6 | 0 | None |
| 7.0.3 (this page) | 1 | High |
Licence
cross-spawn 7.0.3 declares MIT .
Check your whole project
cross-spawn is one package among hundreds in a lockfile. Upload your lockfile, or paste a public GitHub repository, and get every vulnerable package with the version that fixes it. Free, and no account needed.
Get emailed about new advisories for cross-spawn (free, no account)
About this data
Vulnerability data: OSV.dev, last checked 22 November 2026. Licence: deps.dev. AIssue checks the versions on this page every day. Severity comes from the advisory's own rating when it has one, else from its CVSS score.