{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-42740","published":"2021-10-21T15:15:07.633000Z","last_modified":"2026-06-17T04:10:03.200000Z","status":"Modified","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-77"],"cpes":[{"criteria":"cpe:2.3:a:shell-quote_project:shell-quote:*:*:*:*:*:node.js:*:*","part":"a","vendor":"shell-quote_project","product":"shell-quote","version_end_excluding":"1.7.3"}],"cpes_truncated":false,"vendors":["shell-quote_project"],"products":["shell-quote_project/shell-quote"],"epss":{"score":0.04107,"percentile":0.91548,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-g4rg-993r-mgx7","ecosystem":"npm","name":"shell-quote","purl":"pkg:npm/shell-quote","ranges":[{"introduced":"1.6.3","fixed":"1.7.3"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2021-42740/","html_en":"/en/cve/CVE-2021-42740/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-42740","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-42740"},"untrusted":{"vendor_name":"Shell-quote Project","product_name":"Shell-quote","desc_en":"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.","affected":[],"references":[{"url":"https://github.com/substack/node-shell-quote/blob/master/CHANGELOG.md#173","tags":["Third Party Advisory"]},{"url":"https://github.com/substack/node-shell-quote/commit/5799416ed454aa4ec9afafc895b4e31760ea1abe","tags":["Patch","Third Party Advisory"]},{"url":"https://www.npmjs.com/package/shell-quote","tags":["Vendor Advisory"]}]}}