CVE-2026-13311
Reported by harborist · Published June 25, 2026
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.
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| ljharb | shell-quote | 0 |
| chainguard | gitlab-rails-ce-fips-19.2 | 0 |
| npm | shell-quote | 0 |
| chainguard | arangodb-3.12 | 0, 0, 0 |
| chainguard | gitlab-rails-ce-fips-19.0 | 0, 0, 0 |
| wolfi | code-server | 0, 0, 0 |
| chainguard | gemini-cli | 0, 0, 0 |
| ljharb | shell-quote | 0, 0 |
| chainguard | gitlab-rails-ce-19.2 | 0 |
| chainguard | gitlab-rails-ce-19.1 | 0, 0, 0 |
| chainguard | gitlab-rails-ce-19.0 | 0, 0 |
| chainguard | code-server | 0, 0, 0 |
| chainguard | gitlab-rails-ce-fips-19.1 | 0, 0 |
| chainguard | gitlab-rails-ce-fips-18.1 | 0, 0, 0 |
| chainguard | gitlab-rails-ce-18.1 | 0, 0 |
Timeline
- Jun 25, 2026 CVE Published
- Jun 26, 2026 EPSS Score
- Jun 26, 2026 Coalition ESS Score
- Jun 29, 2026 Security Advisory
- Aug 7, 2026 EPSS Score
- Aug 30, 2026 EPSS Score
- Sep 4, 2026 EPSS Score
References
- GHSA-395f-4hp3-45gv vendor-advisory
- product
- https://nvd.nist.gov/vuln/detail/CVE-2026-13311 advisory
- https://github.com/advisories/GHSA-395f-4hp3-45gv advisory
- https://github.com/ljharb/shell-quote/commit/7ff5488599d01c323514f02f5efb74088dd134ec fix
- https://github.com/ljharb/shell-quote/releases/tag/v1.9.0 fix