CVE catalog

CVE-2026-102422

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 t

[CVE catalog]

Severity
Critical · CVSS 9.2CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.38% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannode-shell-quotesid1.12.0-1fixed
Debiannode-shell-quoteforky1.12.0-1fixed
Debiannode-shell-quotetrixie1.7.4+~1.7.1-1+deb13u1vulnerable
Debiannode-shell-quotetrixie-security1.7.4+~1.7.1-1+deb13u2fixed
Debiannode-shell-quotebookworm1.7.4+~1.7.1-1+deb12u1vulnerable
Debiannode-shell-quotebookworm-security1.7.4+~1.7.1-1+deb12u1vulnerable
Npmshell-quoteNot reported1.11.0fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-shell-quotesourcesid1.12.0-1not yet assignedNot reported[1149713]
Debiannode-shell-quotesourceforky1.12.0-1not yet assignedNot reported[1149713]
Debiannode-shell-quotesourcetrixie1.7.4+~1.7.1-1+deb13u2not yet assignedNot reported[1149713]
Debiannode-shell-quotesourcebookworm(unfixed)not yet assignedNot reported[1149713]
Npmshell-quotenpmNot reported1.11.0Not reportedGHSA-PQG4-J6R4-53MVNot reported

[Debian bug #1149713]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (4)
    • 1.7.4+~1.7.1-1+deb12u1 · all · bookworm

      Affected

      nvd · node-shell-quote · debian · bookworm; nvd · node-shell-quote · debian · 12

    • 1.7.4+~1.7.1-1+deb12u1 · all · bookworm

      Affected

      nvd · node-shell-quote · debian · bookworm; nvd · node-shell-quote · debian · 12

    • 1.7.4+~1.7.1-1+deb12u1 · all · bookworm-security

      Affected

      nvd · node-shell-quote · debian · bookworm; nvd · node-shell-quote · debian · 12

    • 1.7.4+~1.7.1-1+deb12u1 · all · bookworm-security

      Affected

      nvd · node-shell-quote · debian · bookworm; nvd · node-shell-quote · debian · 12

[Debian 13 (Trixie)]

  • Details (5)
    • 1.7.4+~1.7.1-1+deb13u1 · all · trixie

      Affected · Fixed: 1.7.4+~1.7.1-1+deb13u2

      nvd · node-shell-quote · debian · 13

    • 1.7.4+~1.7.1-1+deb13u1 · all · trixie

      Affected · Fixed: 1.7.4+~1.7.1-1+deb13u2

      nvd · node-shell-quote · debian · 13

    • 1.7.4+~1.7.1-1+deb13u1 · all · trixie-security · Historical version

      Affected · Fixed: 1.7.4+~1.7.1-1+deb13u2

      nvd · node-shell-quote · debian · 13

    • 1.7.4+~1.7.1-1+deb13u1 · all · trixie-security

      Affected · Fixed: 1.7.4+~1.7.1-1+deb13u2

      nvd · node-shell-quote · debian · 13

    • 1.7.4+~1.7.1-1+deb13u2 · all · trixie-security

      Fixed · Fixed: 1.7.4+~1.7.1-1+deb13u2

      nvd · node-shell-quote · debian · 13

Observed:

References