Vulnerabilidades / CVE-2021-42740

crítica

CVE-2021-42740

The shell-quote package before 1.7.3 for Node.js allows command inject ...

Publicada Modificada CWE 77
En la Trivy database desde, como mínimo, el 24 oct 2026, 07:11 UTCNo consta cuándo entró antes de ese build.

Severidad por fuente

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

La etiqueta propia de Trivy es CRITICAL. Crítica según NVD, GHSA. Más baja según Ubuntu (media).

Descripción

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.

Paquetes afectados y versiones corregidas

FuentePaqueteCorregido en
npm::GitHub Security Advisory npmshell-quote1.7.3
chainguardjitsucom-jitsu, py3-captum0 y 1 más
debian 12node-shell-quote1.7.3+~1.7.1-1
debian 13node-shell-quote1.7.3+~1.7.1-1
debian 14node-shell-quote1.7.3+~1.7.1-1
echonode-shell-quote1.7.3+~1.7.1-1
ubuntu 18.04-ESMnode-shell-quotesin corrección indicada
wolfijitsucom-jitsu0
Mostrar las 9 entradas de 8 fuentes
FuentePaqueteCorregido en
npm::GitHub Security Advisory npmshell-quote1.7.3
chainguardjitsucom-jitsu0
chainguardpy3-captum0.9.0-r1
debian 12node-shell-quote1.7.3+~1.7.1-1
debian 13node-shell-quote1.7.3+~1.7.1-1
debian 14node-shell-quote1.7.3+~1.7.1-1
echonode-shell-quote1.7.3+~1.7.1-1
ubuntu 18.04-ESMnode-shell-quotesin corrección indicada
wolfijitsucom-jitsu0

Referencias

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.