{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-102422","published":"2026-09-29T04:17:55.707000Z","last_modified":"2026-09-30T17:32:07.107000Z","status":"Deferred","cvss":{"version":"4.0","score":9.2,"severity":"CRITICAL","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"7ffcee3d-2c14-4c3e-b844-86c6a321a158","primary":false},"auth":false,"cwes":["CWE-78"],"cpes":[],"cpes_truncated":false,"vendors":[],"products":[],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-pqg4-j6r4-53mv","ecosystem":"npm","name":"shell-quote","purl":"pkg:npm/shell-quote","ranges":[{"introduced":"1.8.4","fixed":"1.11.0"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":70,"links":{"html_es":"/es/cve/CVE-2026-102422/","html_en":"/en/cve/CVE-2026-102422/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-102422","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-102422"},"untrusted":{"desc_en":"shell-quote's `quote()` function emits a `{ comment }` token as `#` followed by its text, which comments out the rest of the shell line, including the opening quote of any later string token. A line terminator (\\n, \\r, U+2028, U+2029) in that later string therefore ends the comment, and the rest of the string is parsed as shell input: `quote(['echo', 'ok', { comment: 'x' }, 'a\\nid;#'])` runs `id` in sh, bash, dash, ksh and zsh. `parse()` emits a comment token for a `#` in the middle of a word (for example `http://example.com/#frag`), so callers that combine `parse()` output with another untrusted string, such as `quote(parse(untrustedCommand).concat(untrustedArg))`, are affected. The fix for CVE-2026-9277 rejected line terminators in the comment's own text, but not in the tokens after it. Fixed in 1.11.0: `quote()` throws a `TypeError` when a string after a `{ comment }` token contains a line terminator.","affected":[],"ai":{"model":"us.anthropic.claude-haiku-4-5-20251001-v1:0","prompt_version":"2","input_hash":"5aeada41903d3e33102ae246f1e12b64","generated":"2026-11-26T23:23:41.126621Z","es":{"untrusted_title":"Inyección de comandos shell en shell-quote por comentarios no validados","untrusted_summary":"La función `quote()` de shell-quote emite tokens de comentario como `#` seguido de texto, lo que comenta el resto de la línea shell. Un salto de línea en una cadena posterior termina el comentario y el resto se ejecuta como entrada shell. Los atacantes pueden ejecutar comandos arbitrarios si combinan `parse()` con cadenas no confiables."},"en":{"untrusted_title":"Shell command injection in shell-quote via unvalidated comments","untrusted_summary":"The `quote()` function in shell-quote emits comment tokens as `#` followed by text, which comments out the rest of the shell line. A line terminator in a later string ends the comment and the rest is executed as shell input. Attackers can execute arbitrary commands if combining `parse()` output with untrusted strings."},"remediation":{"status":"fix","fixed_versions":["1.11.0"],"untrusted_action_es":"Actualiza shell-quote a la versión 1.11.0 o superior, que rechaza saltos de línea en cadenas después de tokens de comentario.","untrusted_action_en":"Update shell-quote to version 1.11.0 or later, which rejects line terminators in strings following comment tokens.","vendor_url":"https://github.com/ljharb/shell-quote/security/advisories/GHSA-pqg4-j6r4-53mv"},"reviewed":false},"references":[{"url":"https://github.com/ljharb/shell-quote","tags":[]},{"url":"https://github.com/ljharb/shell-quote/commit/6002b2ed90c6b83095eb272b6b0adaf3a172b0bc","tags":[]},{"url":"https://github.com/ljharb/shell-quote/security/advisories/GHSA-pqg4-j6r4-53mv","tags":[]},{"url":"https://www.npmjs.com/package/shell-quote","tags":[]}]},"bulletins":[{"source":"suse","id":"openSUSE-SU-2026:12701-1","url":"https://www.suse.com/support/update/","published":"2026-11-27T00:00:00+00:00","severity":"critical","exploited":false,"untrusted":{"title":"agama-web-ui-25+723.416bea1dc-57.1 on GA media"}},{"source":"redhat","id":"RHSA-2026:72498","url":"https://access.redhat.com/errata/RHSA-2026:72498","published":"2026-11-23T20:49:21+00:00","severity":"critical","exploited":false,"untrusted":{"title":"Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update"}},{"source":"redhat","id":"RHSA-2026:72507","url":"https://access.redhat.com/errata/RHSA-2026:72507","published":"2026-11-23T20:49:21+00:00","severity":"critical","exploited":false,"untrusted":{"title":"Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update"}},{"source":"redhat","id":"RHSA-2026:72750","url":"https://access.redhat.com/errata/RHSA-2026:72750","published":"2026-10-10T10:20:37+00:00","severity":"critical","exploited":false,"untrusted":{"title":"Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update"}}]}