
CVE catalog
CVE-2026-102422
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 t
- Severity
- Critical · CVSS 9.2
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 - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 0.38% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | node-shell-quote | sid | 1.12.0-1 | fixed |
| Debian | node-shell-quote | forky | 1.12.0-1 | fixed |
| Debian | node-shell-quote | trixie | 1.7.4+~1.7.1-1+deb13u1 | vulnerable |
| Debian | node-shell-quote | trixie-security | 1.7.4+~1.7.1-1+deb13u2 | fixed |
| Debian | node-shell-quote | bookworm | 1.7.4+~1.7.1-1+deb12u1 | vulnerable |
| Debian | node-shell-quote | bookworm-security | 1.7.4+~1.7.1-1+deb12u1 | vulnerable |
| Npm | shell-quote | Not reported | 1.11.0 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | node-shell-quote | source | sid | 1.12.0-1 | not yet assigned | Not reported | [1149713] |
| Debian | node-shell-quote | source | forky | 1.12.0-1 | not yet assigned | Not reported | [1149713] |
| Debian | node-shell-quote | source | trixie | 1.7.4+~1.7.1-1+deb13u2 | not yet assigned | Not reported | [1149713] |
| Debian | node-shell-quote | source | bookworm | (unfixed) | not yet assigned | Not reported | [1149713] |
| Npm | shell-quote | npm | Not reported | 1.11.0 | Not reported | GHSA-PQG4-J6R4-53MV | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [node-shell-quote]Affected
Details (4)
1.7.4+~1.7.1-1+deb12u1· all · bookwormAffected
nvd · node-shell-quote · debian · bookworm; nvd · node-shell-quote · debian · 12
1.7.4+~1.7.1-1+deb12u1· all · bookwormAffected
nvd · node-shell-quote · debian · bookworm; nvd · node-shell-quote · debian · 12
1.7.4+~1.7.1-1+deb12u1· all · bookworm-securityAffected
nvd · node-shell-quote · debian · bookworm; nvd · node-shell-quote · debian · 12
1.7.4+~1.7.1-1+deb12u1· all · bookworm-securityAffected
nvd · node-shell-quote · debian · bookworm; nvd · node-shell-quote · debian · 12
[Debian 13 (Trixie)]
- [node-shell-quote]Affected
Details (5)
1.7.4+~1.7.1-1+deb13u1· all · trixieAffected · Fixed:
1.7.4+~1.7.1-1+deb13u2nvd · node-shell-quote · debian · 13
1.7.4+~1.7.1-1+deb13u1· all · trixieAffected · Fixed:
1.7.4+~1.7.1-1+deb13u2nvd · node-shell-quote · debian · 13
1.7.4+~1.7.1-1+deb13u1· all · trixie-security · Historical versionAffected · Fixed:
1.7.4+~1.7.1-1+deb13u2nvd · node-shell-quote · debian · 13
1.7.4+~1.7.1-1+deb13u1· all · trixie-securityAffected · Fixed:
1.7.4+~1.7.1-1+deb13u2nvd · node-shell-quote · debian · 13
1.7.4+~1.7.1-1+deb13u2· all · trixie-securityFixed · Fixed:
1.7.4+~1.7.1-1+deb13u2nvd · node-shell-quote · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/]
- [https://github.com/advisories/GHSA-pqg4-j6r4-53mv]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-102422]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-102422]
- [https://security-tracker.debian.org/tracker/CVE-2026-102422]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-102422.json]
[Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]