CVE-2026-9277
The shell-quote library’s quote() function fails to escape line terminators in operator tokens, allowing attackers to inject newline characters that become separate shell commands. This flaw can lead to arbitrary command execution when the library processes user‑supplied input.
An official fix is available, so this entry is kept for 30 days and then removed automatically.
Who is affected
Node.js developers using the shell-quote library (JavaScript). No specific product versions are listed.
Real-world impact
An attacker can inject a newline into an operator token, causing the shell to treat the following text as a new command and execute it. This results in remote code execution on the affected system.
Why this severity
The CVSS score of 9.2 reflects the vulnerability’s high impact on confidentiality, integrity, and availability, combined with its network‑reachable nature, low attack complexity, no required privileges, and no user interaction.
What to do about it
- 01Upgrade the shell-quote library to a version that includes the fix.
NVD description indicates the vulnerability was fixed by updating the library
Timeline
- May 22, 2026 · May 22, 2026PublishedDisclosed and added to the National Vulnerability Database.
- Jul 19, 2026 · 17d agoOfficial fix availableA vendor patch or mitigation now exists — see the remediation steps above.
- Aug 3, 2026 · 1d agoAdvisory updatedThe NVD record was last revised.
How it’s attacked
References & advisories
- github.com/ljharb/shell-quote
- github.com/ljharb/shell-quote/commit/1…
- github.com/ljharb/shell-quote/security…
- npmjs.com/package/shell-quote
- openwall.com/lists/oss-security/2026/05/…
- access.redhat.com/errata/RHSA-2026:26072
- access.redhat.com/errata/RHSA-2026:26077
- access.redhat.com/errata/RHSA-2026:26079
- access.redhat.com/errata/RHSA-2026:26080
- access.redhat.com/errata/RHSA-2026:26090
- access.redhat.com/errata/RHSA-2026:26225
- access.redhat.com/errata/RHSA-2026:28010
- access.redhat.com/errata/RHSA-2026:28571
- access.redhat.com/errata/RHSA-2026:29197
- access.redhat.com/errata/RHSA-2026:29795
- access.redhat.com/errata/RHSA-2026:29834
- access.redhat.com/errata/RHSA-2026:30076
- access.redhat.com/errata/RHSA-2026:33574
- access.redhat.com/errata/RHSA-2026:33683
- access.redhat.com/errata/RHSA-2026:34342