GHSA-g4rg-993r-mgx7 · Severity: critical · Ecosystem: npm — Improper Neutralization of Special Elements used in a Command in Shell-quote
The shell-quote package before 1.7.3 for Node.js allows command injection. An attacker can inject unescaped shell metacharacters through a regex designed to support Windows drive letters. If the output of this package is passed to a real shell as a quoted argument to a command with exec(), an attacker can inject arbitrary commands. This is because the Windows drive letter regex character class is {A-z] instead of the correct {A-Za-z]. Several shell metacharacters exist in the space between capital letter Z and lower case letter a, such as the backtick character.
Conclusion & alert: CVE-2021-42740 is rated High Risk (66/100): CVSS Critical severity, with medium exploitation likelihood (EPSS 4.34%). Mandatory action: High exploitation likelihood—assess exposure and prioritize remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 9.04% | 4.34% | -4.70% |
| 2 | 2026-03-06 | 5.37% | 9.04% | +3.68% |
| 3 | 2026-03-04 | — | 5.37% | — |
Full EPSS history (53 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 9.8 | 3.1 | CRITICAL |
|
3.9 | 5.9 | [email protected] |
| 7.5 | 2.0 | HIGH |
|
10.0 | 6.4 | [email protected] |
GHSA-g4rg-993r-mgx7 · Severity: critical · Ecosystem: npm — Improper Neutralization of Special Elements used in a Command in Shell-quote
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2021-42740 not yet assigned priority: Debian including 1 source packages (node-shell-quote), 4 status rows across 4 suites (bookworm, forky, sid, trixie): resolved 4. | https://security-tracker.debian.org/tracker/CVE-2021-42740 |
suse
|
critical | — | https://www.suse.com/security/cve/CVE-2021-42740/ |
ubuntu
|
medium | CVE-2021-42740 medium priority: Ubuntu including 1 source packages (node-shell-quote), 15 status rows across 15 suites (bionic, focal, hirsute, impish, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): not-affected 8, DNE 3, ignored 2, needed 1, needs-triage 1. | https://ubuntu.com/security/CVE-2021-42740 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| shell-quote_project | shell-quote | < 1.7.3 | cpe:2.3:a:shell-quote_project:shell-quote:*:*:*:*:*:node.js:*:* |
| URL | Tags |
|---|---|
| https://github.com/substack/node-shell-quote/blob/master/CHANGELOG.md#173 | Third Party Advisory |
| https://github.com/substack/node-shell-quote/commit/5799416ed454aa4ec9afafc895b4e31760ea1abe | Patch Third Party Advisory |
| https://www.npmjs.com/package/shell-quote | Vendor Advisory |