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

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

Affected products (1)

More vulnerabilities in Shell-quote Project Shell-quote

All CVEs affecting Shell-quote Project Shell-quote →

Other CWE-407 vulnerabilities

Browse all CWE-407 vulnerabilities →