Command Injection in shell-quote - CVE-2026-9277

 

Command Injection in shell-quote - CVE-2026-9277

Published: July 20, 2026


Vulnerability identifier: #VU138393
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2026-9277
CWE-ID: CWE-77
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: ljharb
Affected software:
shell-quote

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary commands on the system.

The vulnerability exists due to shell-quote's `quote()` function did not validate object-token inputs against the operator model used by `parse()`.. A remote attacker can pass specially crafted data to the application and execute arbitrary commands.


How to mitigate CVE-2026-9277

Install updates from vendor's website.

Sources