CVE-2026-102422
Last modified
CVE-2026-102422 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. 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.
Description
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| — | shell-quote | >= 1.8.4, < 1.11.0 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-102422?
How severe is CVE-2026-102422?
How do I fix CVE-2026-102422?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-10238Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2026-10239A vulnerability was determined in JeecgBoot up to 3.9.2. The…6.3
- CVE-2026-10240A vulnerability was identified in JeecgBoot up to 3.9.2. The…6.3
- CVE-2026-10241A security flaw has been discovered in jeecgboot The server …6.3
- CVE-2026-102414pbkdf2 through 3.1.6 re-hashes passwords longer than the dig…3.7
- CVE-2026-10242A weakness has been identified in itsourcecode Content Manag…6.3
- CVE-2026-10243A security vulnerability has been detected in code-projects …7.3
- CVE-2026-10244A vulnerability was detected in SourceCodester Pharmacy Sale…3.5
- CVE-2026-10245A flaw has been found in SourceCodester Pharmacy Sales and I…3.5
- CVE-2026-10246A vulnerability has been found in SourceCodester Pharmacy Sa…3.5
- CVE-2026-10247A vulnerability was found in SourceCodester Pharmacy Sales a…3.5
- CVE-2026-10248A vulnerability was determined in SourceCodester Pharmacy Sa…4.7
Are you affected by CVE-2026-102422?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
