Node shell quote: shell-quote's quote() function emits a { comment } token as # followed by its text, which comments
Affects node-shell-quoteSource GCVE Database
Mentioned vulnerabilities
Not known to be exploited · CVSS 8.1 High · fixed in 1.11.0 : patch node-shell-quote soon.
Data as of 24 Nov 2026, 22:28 UTC
- Patch
- Available – fixed in 1.11.0
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 29 Sep 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10node-shell-quotepkg:deb/ubuntu/node-shell-quote?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu Pro 26.04 LTSnode-shell-quotepkg:deb/ubuntu/node-shell-quote?arch=source&distro=esm-apps/resoluteOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSnode-shell-quotepkg:deb/ubuntu/node-shell-quote?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu Pro 22.04 LTSnode-shell-quotepkg:deb/ubuntu/node-shell-quote?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in– |
Ubuntu Pro 18.04 LTSnode-shell-quotepkg:deb/ubuntu/node-shell-quote?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
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.
References
- ubuntu.com/security/CVE-2026-102422 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-102422 (opens in a new tab)
- github.com/ljharb/shell-quote (opens in a new tab)
- github.com/ljharb/shell-quote/commit/6002b2ed90c6b83095eb272b6b0adaf3a172b0bc (opens in a new tab)
- github.com/ljharb/shell-quote/security/advisories/GHSA-pqg4-j6r4-53mv (opens in a new tab)
- npmjs.com/package/shell-quote (opens in a new tab)