patchminder
Proof of concept · GitHub CVE-2026-102422

Command injectionin the shell-quote package.

Published 29 Sep 2026 · Updated 30 Sep 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
High 8.1
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.5% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 1.11.0 or later
In plain words

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.

What to do now
  • Upgrade shell-quote (npm) to 1.11.0 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
shell-quote
Not confirmed
Not confirmed
CVE record
shell-quote (npm)
1.8.4 to before 1.11.0
1.11.0
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 29 Sep 2026
    CVE ID reserved by harborist.
  2. 29 Sep 2026
    Published in the CVE List.
  3. 30 Sep 2026
    CVE record last updated.
  4. 7 Oct 2026
    First public proof of concept on GitHub.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
2 repositories
GitHubno warning signs foundDevVaibhav07/CVE-2026-1024220 stars · created 7 Oct 2026CVE-2026-102422 POC
GitHubno warning signs foundfedericonbaez/cortex9-shell-quote-comment-line-terminator-model0 stars · created 9 Nov 2026Offline educational model of CVE-2026-102422 (shell-quote comment line terminator)

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other vulnerabilities in this package

Same weakness: OS command injection

All CWE-78 vulnerabilities

References
Cite this page

Patchminder. CVE-2026-102422: Command injection in the shell-quote package. https://patchminder.com/cve/cve-2026-102422/ (accessed 5 December 2026).