CVE-2026-13311
CVE-2026-13311 is a high-severity vulnerability in Shell-quote Project Shell-quote with a CVSS 3.x base score of 7.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-407.
Key facts
- Severity: High (CVSS 3.x base score 7.5)
- CVSS v4: 8.7
- EPSS exploit prediction: 0% (28th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2026-39180
- Weakness: CWE-407
- Affected product: Shell-quote Project Shell-quote
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2026-13311?
- 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.
- How severe is CVE-2026-13311?
- CVE-2026-13311 has a CVSS 3.x base score of 7.5, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is none, integrity none, and availability high.
- Is CVE-2026-13311 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (28th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-13311?
- CVE-2026-13311 affects Shell-quote Project Shell-quote. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2026-13311?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2026-13311 have an EU (EUVD) identifier?
- Yes. CVE-2026-13311 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-39180.
- When was CVE-2026-13311 published?
- CVE-2026-13311 was published on 2026-06-25 and last updated on 2026-06-26.
References
- https://github.com/ljharb/shell-quote/security/advisories/GHSA-395f-4hp3-45gv
- https://www.npmjs.com/package/shell-quote
Affected products (1)
- cpe:2.3:a:shell-quote_project:shell-quote:*:*:*:*:*:node.js:*:*
More vulnerabilities in Shell-quote Project Shell-quote
- CVE-2021-42740 — Critical (CVSS 9.8): The shell-quote package before 1.7.3 for Node.js allows command injection. An attacker can inject unescaped shell…
- CVE-2016-10541 — Critical (CVSS 9.8): The npm module "shell-quote" 1.6.0 and earlier cannot correctly escape ">" and "<" operator used for redirection in…
All CVEs affecting Shell-quote Project Shell-quote →
Other CWE-407 vulnerabilities
- CVE-2026-58226 — High (CVSS 8.7): Inefficient Algorithmic Complexity vulnerability in elixir-mint hpax allows unauthenticated denial-of-service via…
- CVE-2026-54892 — High (CVSS 8.7): Inefficient algorithmic complexity in Plug's nested-parameter decoder allows an unauthenticated remote attacker to…
- CVE-2026-59094 — High (CVSS 7.5): Pathway through 0.31.1, fixed in commit d09722e, document store applies a caller-supplied glob pattern to indexed…
- CVE-2026-53433 — High (CVSS 7.5): fzf is vulnerable to a Denial of Service (DoS) due to inefficient HTTP body processing in the --listen mode due to…
- CVE-2026-48516 — High (CVSS 7.5): MessagePack for C# is a MessagePack serializer for C#. Prior to 2.5.301 and 3.1.7,…
- CVE-2026-48511 — High (CVSS 7.5): MessagePack for C# is a MessagePack serializer for C#. Prior to 2.5.301 and 3.1.7, ExpandoObjectFormatter.Deserialize…