CVE-2026-13311 Details
Description
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.
A denial-of-service vulnerability has been identified in the 'shell-quote' package, specifically in versions prior to 1.8.5. The issue arises in the 'parse()' function, where tokens are finalized using 'Array.prototype.concat' as a reduce accumulator. This approach causes the function to operate with a time complexity of O(n^2) relative to the number of input tokens. An attacker who can send a string to any code path that invokes 'parse()' can significantly disrupt the Node.js event loop, causing prolonged delays in processing requests. The vulnerability does not involve code execution or data disclosure, but it severely impacts availability.
Users are advised to update to 'shell-quote' version 1.9.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 25, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ljharb/shell-quote/security/advisories/GHSA-395f-4hp3-45gv | CISA-ADP | Vendor Advisory |
| https://github.com/ljharb/shell-quote/security/advisories/GHSA-395f-4hp3-45gv | harborist | Vendor Advisory |
| https://www.npmjs.com/package/shell-quote | harborist | Product |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-407 | Inefficient Algorithmic Complexity | harborist |
Affected Products
| Product | Versions |
|---|---|
| shell-quote project shell-quote | < 1.9.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Jun 26, 2026 | Initial Analysis | [email protected] |
| Jun 25, 2026 | CVE Modified | CISA-ADP |
| Jun 25, 2026 | New CVE Received | harborist |