Skip to main content
CVE-2026-102422VulnerabilityPublished Updated

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

0
Compare

Mentioned vulnerabilities

Authoritative record:CVE-2026-102422· High 8.1

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

CVSS 3.1 base score
8.1High
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 29 Sep 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Ubuntu 26.10node-shell-quotepkg:deb/ubuntu/node-shell-quote?arch=source&distro=stonkingOther threatsAffected
  • =1.8.3+~1.7.5-1
  • =1.9.0+~1.7.5-1
  • =1.10.0-1
Fixed in–
Ubuntu Pro 26.04 LTSnode-shell-quotepkg:deb/ubuntu/node-shell-quote?arch=source&distro=esm-apps/resoluteOther threatsAffected
  • =1.7.4+~1.7.1-1
  • =1.8.3+~1.7.5-1
  • =1.8.3+~1.7.5-1ubuntu0.1~esm1
Fixed in–
Ubuntu 24.04 LTSnode-shell-quotepkg:deb/ubuntu/node-shell-quote?arch=source&distro=nobleOther threatsAffected
  • =1.7.4+~1.7.1-1
  • =1.7.4+~1.7.1-1ubuntu0.24.04.1
Fixed in–
Ubuntu Pro 22.04 LTSnode-shell-quotepkg:deb/ubuntu/node-shell-quote?arch=source&distro=esm-apps/jammyOther threatsAffected
  • =1.7.3+~1.7.1-1
  • =1.7.3+~1.7.1-1ubuntu0.1~esm1
Fixed in–
Ubuntu Pro 18.04 LTSnode-shell-quotepkg:deb/ubuntu/node-shell-quote?arch=source&distro=esm-apps/bionicOther threatsAffected
  • =1.6.1+20160617-git72fb5a8ce29b-1
  • =1.6.1+20160617-git72fb5a8ce29b-1ubuntu0.1~esm1
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

Community reviews

Loading reviews…