Skip to main content
VulnerabilityPublished Updated

CVE-2026-102422: shell-quote · OS Command Injection

Affects shell-quoteSource CVE Database V5

0
Compare

Mentioned vulnerabilities

Not known to be exploited · CVSS 8.1 High : upgrade to 1.11.0 soon.

Data as of 12 Nov 2026, 23:24 UTC

CVSS 3.1 base score
8.1High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 41% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
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: evidence found.

    Public exploit code: GitHub proofs of concept

  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), GitHub proofs of concept, the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.

What to do

Upgrade shell-quote to 1.11.0.

Affected software

ProductAffectedFixed in
shell-quoteAffected
  • >=1.8.4 <1.11.0
Fixed in
  • 1.11.0
npmshell-quotepkg:npm/shell-quoteOther threatsAffected
  • >=1.8.4 <1.11.0
Fixed in
  • 1.11.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade shell-quote to version 1.11.0 or later, where the quote() function throws a TypeError if a string after a comment token contains a line terminator, effectively preventing this OS command injection. No other mitigations are indicated. Patch status is confirmed fixed in 1.11.0.

Description

CVE-2026-102422 is a high-severity OS command injection vulnerability in the shell-quote library's quote() function. The vulnerability arises because comment tokens emitted as # followed by text can comment out the rest of a shell line, allowing line terminators in subsequent string tokens to end the comment and cause unintended shell command execution. This affects versions from 1.8.4 up to but not including 1.11.0. The issue was fixed in version 1.11.0 by making quote() throw a TypeError when a string after a comment token contains a line terminator.

References

Community reviews

Loading reviews…