All CVEs / Shell-quote Project
CVE-2026-13311Shell-quote Project Shell-quote
High 8.7 No auth needed
Follow: this CVE · Shell-quote Project · Shell-quote Project Shell-quote We alert you by email or Slack (account required).
- Priority
- 67
- CVSS 4.0
- 8.7
- EPSS
- —
- Auth required
- No
- Published
- Jun 25, 2026
- Updated
- Oct 25, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-407
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/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
What happens
shell-quote prior to 1.8.5 finalizes parsed tokens in parse() using Array.prototype.concat as a reduce accumulator, which reallocates and copies the entire growing array on every iteration. As a result parse() runs in O(n^2) time relative to the number of input tokens. An attacker who can supply an attacker-controlled string to any code path that calls parse() (no shell metacharacters are required; plain space-separated words suffice) can block the single-threaded Node.js event loop for an extended period with a small input, resulting in a denial of service. There is no code execution or data disclosure; impact is to availability only. Fixed in 1.8.5.
What to do
- Apply the vendor's security update for Shell-quote.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | shell-quote |
< 1.9.0 |
1.9.0 |
npm install shell-quote@1.9.0 |
Per OSV / GitHub Advisories (GHSA-395f-4hp3-45gv). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| shell-quote_project | shell-quote | < 1.9.0 |
Official advisories
- agama-web-ui-23+75.1a877fb50-50.1 on GA media · SUSE · openSUSE-SU-2026:11472-1 · Aug 9, 2026 High
- Security update for agama-web-ui · SUSE · openSUSE-SU-2026:21448-1 · Jul 27, 2026 Critical
- Security update for python-pytest-html · SUSE · openSUSE-SU-2026:21176-1 · Jun 30, 2026 High
Also: SUSE (+2)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Vendor Advisory
- www.npmjs.com Product