ADVISORIES

Vulnerability

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 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.

58 advisories report this vulnerability, across 7 ecosystems.

Advisories

  • CGA-22fx-q5h3-vrcp
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-2h9r-v78q-96jv
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-2j32-x6pc-f444
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-4gcq-7h7w-fh33
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-562w-6frw-9h3q
    CVE-2026-102422 Chainguard Updated 23 October 2026
  • CGA-5p7x-xg9w-j6vx
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-5wq9-57g9-8xc2
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-6hgx-m5pv-3cqx
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-6hhg-c5gf-cxvf
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-6vjc-vp8r-27xh
    CVE-2026-102422 ChainguardWolfi Updated 5 November 2026
  • CGA-7mp8-7x65-6cr8
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-7xjq-cxqw-2462
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-86xj-hm34-92pr
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-9jmc-48wg-x99r
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-c2v9-93x7-fxrg
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-c8qx-jw7w-93xp
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-cq4j-2h5f-fwc3
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-f4f8-9636-f5m2
    CVE-2026-102422 Chainguard Updated 27 October 2026
  • CGA-f8pv-6rfw-q27q
    CVE-2026-102422 Chainguard Updated 23 October 2026
  • CGA-fg4v-5g95-79wq
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-fp4p-5f4v-x5m9
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-g458-f3wr-cmg2
    CVE-2026-102422 Chainguard Updated 27 October 2026
  • CGA-g9xq-c429-9rg8
    CVE-2026-102422 ChainguardWolfi Updated 5 November 2026
  • CGA-ghc6-85ww-h3mh
    CVE-2026-102422 ChainguardWolfi Updated 5 November 2026
  • CGA-gjc4-563w-3m25
    CVE-2026-102422 Chainguard Updated 22 October 2026
  • CGA-gmcf-jp57-p9c2
    CVE-2026-102422 Chainguard Updated 23 October 2026
  • CGA-gmr6-mc4c-wx3q
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-gw4f-3599-px9f
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-h27q-979c-wrmx
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-h5v4-6wfj-hwpx
    CVE-2026-102422 ChainguardWolfi Updated 5 November 2026
  • CGA-h79p-fw45-gfw7
    CVE-2026-102422 Chainguard Updated 22 October 2026
  • CGA-h8f4-xgxw-7vg5
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-hqw3-rhf4-g43j
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-j6qm-88f6-j239
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-jhgq-rr8x-6gj4
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-jhqp-j738-9gwv
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-mfrh-qpmw-rcrf
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-p6c7-82v9-3844
    CVE-2026-102422 Chainguard Updated 24 October 2026
  • CGA-pqx6-mmqj-c3j2
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-q2qr-m67w-prmf
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-q8m8-rj92-f3x7
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-qmp7-x3q4-7ffq
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-qpqx-hffx-92p5
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-v38h-45pv-8m4g
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-v55x-8c6p-374h
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-vmfh-3hfh-558v
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-vwq8-v24m-r9q3
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • CGA-w9xq-j853-2c8m
    CVE-2026-102422 Chainguard Updated 5 November 2026
  • DEBIAN-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 terminator (\n, \r,…

    CVE-2026-102422 Debian Updated 12 November 2026
  • DLA-4901-1

    node-shell-quote - security update

    CVE-2026-102422CVE-2026-13311 Debian Updated 20 November 2026
  • DSA-6548-1

    node-shell-quote - security update

    CVE-2026-13311CVE-2026-102422 Debian Updated 20 November 2026
  • GHSA-pqg4-j6r4-53mv

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

    Critical CVE-2026-102422 npm Updated 6 October 2026
  • RHSA-2026:69544

    Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

    CVE-2026-102422 Red Hat Updated 23 November 2026
  • RHSA-2026:72498

    Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update

    CVE-2026-102422CVE-2026-61709CVE-2026-63209CVE-2026-93450 Red Hat Updated 23 November 2026
  • RHSA-2026:72507

    Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update

    CVE-2026-102422CVE-2026-63209CVE-2026-81842CVE-2026-93450 Red Hat Updated 23 November 2026
  • RHSA-2026:72750

    Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update

    CVE-2026-102422CVE-2026-56851CVE-2026-93450 Red Hat Updated 23 November 2026
  • SUSEVEX-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 terminator (\n, \r,…

    Critical CVE-2026-102422 SUSE Updated 10 November 2026
  • UBUNTU-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 terminator (\n, \r,…

    CVE-2026-102422 Ubuntu Updated 17 October 2026

References