CVEBrief

Home / shell-quote / shell-quote / CVE-2026-102422

CVE-2026-102422: is it exploited, and which versions of shell-quote are affected and fixed?

CVE-2026-102422 is an OS command injection vulnerability in shell-quote. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 10:38 UTC). Affected: shell-quote from 1.8.4 before 1.11.0 (GitHub advisory GHSA-pqg4-j6r4-53mv). Fixed in 1.11.0 (GitHub advisory GHSA-pqg4-j6r4-53mv). Severity: Critical (9.2, CVSS 3.1, from harborist).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:38 UTC, CVE record November 19, 2026, 07:05 UTC and NVD November 19, 2026, 07:06 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 10:38 UTC
Affected
shell-quote from 1.8.4 before 1.11.0
GitHub advisory GHSA-pqg4-j6r4-53mv
Fixed in
1.11.0
GitHub advisory GHSA-pqg4-j6r4-53mv
Severity
Critical 9.2
CVSS 3.1 from harborist
Exploit odds (EPSS)
0.48% in 30 days
higher than 43% of CVEs; FIRST, December 2, 2026

What is CVE-2026-102422?

shell-quote `quote()` command injection via a line terminator in a token after a `{ comment }` token

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.

From the CVE record by harborist, last updated September 30, 2026, 15:18 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
shell-quotefrom 1.8.4 before 1.11.01.11.0

As the CVE record by harborist states it, last updated September 30, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
npmshell-quote>= 1.8.4, < 1.11.01.11.0GHSA-pqg4-j6r4-53mv

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated October 6, 2026. Summary: shell-quote: `quote()` command injection via a line terminator in a token after a `{ comment }` token.

How severe is CVE-2026-102422?

ScoreVersionVectorSource
High 8.1CVSS 3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:Hharborist
Critical 9.2CVSS 4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:Nharborist

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2026-102422 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: none; automatable: no; technical impact: total (CISA ADP, September 30, 2026)
EPSS
0.48% probability of exploitation activity in the next 30 days, percentile 43.0 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

Who found and reported it?

As published in the CVE record; contact details are removed.

When was it published, and where is the official record?

Reserved
September 29, 2026
Published
September 29, 2026, 03:47 UTC
CVE record updated
September 30, 2026, 15:18 UTC by harborist
NVD
Deferred, last modified September 30, 2026, 17:32 UTC
Last checked
CVE list November 19, 2026, 07:05 UTC; NVD November 19, 2026, 07:06 UTC; KEV December 3, 2026, 10:38 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

What other CVEs affect shell-quote?

Every CVE in shell-quote

Questions about CVE-2026-102422

Is CVE-2026-102422 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 10:38 UTC. FIRST's EPSS gives it a 0.48% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of shell-quote are affected by CVE-2026-102422?

shell-quote from 1.8.4 before 1.11.0, per the GitHub advisory GHSA-pqg4-j6r4-53mv. The tables above give every range the sources list.

Which version fixes CVE-2026-102422?

1.11.0, per the GitHub advisory GHSA-pqg4-j6r4-53mv. Check the vendor's advisory before you rely on it.

How severe is CVE-2026-102422?

Critical (9.2, CVSS 3.1, from harborist). The severity table above shows each score with its source.

Where is the official record of CVE-2026-102422?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.