Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-102422

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

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.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9.2
-
4.0
CVSS: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
C
H
U
0
-
C
H
U
-

Related Resources

No items found.

References

https://www.npmjs.com/package/shell-quote, https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102422.json, https://github.com/ljharb/shell-quote/security/advisories/GHSA-pqg4-j6r4-53mv, https://nvd.nist.gov/vuln/detail/CVE-2026-102422, https://github.com/ljharb/shell-quote/commit/6002b2ed90c6b83095eb272b6b0adaf3a172b0bc, https://github.com/ljharb/shell-quote

Severity

0

CVSS Score
0
10

Basic Information

Base CVSS
0
EPSS Probability
0.00378%
EPSS Percentile
0.31469%
Introduced Version
ff166e2b63eb5f932bd131a8886a99e9afdf45ae,0
Fix Available
6002b2ed90c6b83095eb272b6b0adaf3a172b0bc,1.7.4+~1.7.1-1+deb13u2,3.12.12.1-r5,4.141.0-r1,19.1.7-r3,19.2.7-r1,19.3.3-r1,19.4.1-r1,19.1.9-r0,0.63.0-r1,19.0.10-r0,19.2.7-r7,19.3.3-r6,19.4.1-r8,19.0.9-r3,19.1.8-r9,19.3.3-r8,44.133.0-r2

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading