CVE-2026-102422: Vulnerability in shell-quote

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

npm, CWE-78

Exploitation
None confirmed
Severity
8.1 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-pqg4-j6r4-53mv
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-78
Published
29 Sept 2026
Last change
6 Oct 2026
Ecosystem
npm

Affected packages

Vulnerable version ranges and fixed releases

  • shell-quote npm, Affected from 1.8.4 before 1.11.0. Fixed in 1.11.0

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes