CVE-2021-42740 is a critical command injection vulnerability affecting the shell-quote package before version 1.7.3 for Node.js. An attacker can exploit a flaw in the Windows drive letter regex, which incorrectly uses {A-z] instead of {A-Za-z], to inject unescaped shell metacharacters. This allows for arbitrary command execution when the package's output is passed to a shell, posing a severe risk with a CVSS score of 9.8 (CRITICAL). Currently, there is no evidence of active exploitation, public exploit code, or significant community discussion surrounding this vulnerability.
| Vendor | Product | Version(s) | CPE |
|---|---|---|---|
< 1.7.3CPE matchmatch criteria | cpe:2.3:a:shell-quote_project:shell-quote:*:*:*:*:*:node.js:*:* |
CVSS version used by this source: 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
The average CVE in this peer group has 0.0 Twitter, 0.1 Reddit, 0.3 Bluesky, 0.3 Mastodon, and 2.4 GitHub mentions.
No media coverage found for this CVE.
The average CVE in this peer group has 0.3 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.