9.8

CVE-2021-42740: shell-quote_project shell-quote

Modified
AliasesUBUNTU-CVE-2021-42740DEBIAN-CVE-2021-42740CGA-57fp-cvh2-3jwp
Published 21-10-2021Last modified 04-08-2024

Vulnerability summary

CVE-2021-42740 is a critical (CVSS 9.8) vulnerability in shell-quote_project shell-quote. EPSS estimates a 4.22% chance of exploitation in the next 30 days, higher than 91% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 9.8 (NVD); no exploitation reported by the 5 checked sources; EPSS 4% (FIRST, 03-11-2026)

Source freshness unavailable

How is this decided?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
4.22%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 4 · Related 5

Timeline

  1. 21-10-2021
    PublishedVulnerability first disclosed.
  2. 04-08-2024
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

7 scores · 6 sources · 2 versions

EPSS trend

Probability

4.22%

Chance of exploitation in the next 30 days

Percentile

91%

Versus all other CVEs

30-day change

No change 0.00 pp

From 4.22% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard5 products
  • jitsucom-jitsuAll versions (No fix recorded)
  • py3.10-captum< 0.9.0-r1
  • py3.11-captum< 0.9.0-r1
  • py3.12-captum< 0.9.0-r1
  • py3.13-captum< 0.9.0-r1
Debian1 product
  • node-shell-quote< 1.7.3+~1.7.1-1
Npm1 product
  • shell-quote≥ 1.6.3, < 1.7.3
Shell-quote_project1 product
Ubuntu1 product
  • node-shell-quoteAll versions (No fix recorded)
Wolfi1 product
  • jitsucom-jitsuAll versions (No fix recorded)

6 vendors · 10 products

References

10 links