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. EPSS estimates a 0.38% chance of exploitation in the next 30 days.
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
- Deferred
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-102410Missing Authorization (CWE-862) in Kibana can lead to inform…4.3
- CVE-2026-102411Allocation of Resources Without Limits or Throttling (CWE-77…6.5
- CVE-2026-102412Incorrect Authorization (CWE-863) in Kibana can lead to sens…6.5
- CVE-2026-102413Uncaught Exception (CWE-248) in Elastic Endpoint can lead to…6.2
- 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-102424Joomla Extension - balbooa.com - Unauthenticated path traver…7.5
- CVE-2026-102425Joomla Extension - balbooa.com - Unauthenticated RCE via fie…10
- CVE-2026-102426Joomla Extension - joomshaper.com - Reflected XSS in the Dyn…6.1
- CVE-2026-102427Joomla Extension - ordasoft.com - Unauthenticated Remote Cod…10
- CVE-2026-102428Joomla Extension - ordasoft.com - Unauthenticated SQL inject…9.8
- CVE-2026-10243A security vulnerability has been detected in code-projects …7.3
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
