Home / ljharb / shell-quote / CVE-2026-13311
CVE-2026-13311: is it exploited, and which versions of ljharb shell-quote are affected and fixed?
CVE-2026-13311 is a denial of service through slow algorithm vulnerability in ljharb shell-quote. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:39 UTC). Affected: shell-quote before 1.9.0 (GitHub advisory GHSA-395f-4hp3-45gv). Fixed in 1.9.0 (GitHub advisory GHSA-395f-4hp3-45gv). Severity: High (8.7, CVSS 4.0, from harborist).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:08 UTC and NVD November 19, 2026, 07:10 UTC.
What is CVE-2026-13311?
shell-quote parse() is quadratic in token count, enabling denial of service
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.
From the CVE record by harborist, last updated June 25, 2026, 12:49 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| ljharb | shell-quote | through 1.8.4 |
As the CVE record by harborist states it, last updated June 25, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | shell-quote | < 1.9.0 | 1.9.0 | GHSA-395f-4hp3-45gv |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated July 20, 2026. Summary: shell-quote: Quadratic-complexity Denial of Service in `parse()` (CWE-407).
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| shell-quote project | shell-quote | before 1.9.0 | application |
NVD analysis (status Analyzed), last modified October 25, 2026, 23:10 UTC.
How severe is CVE-2026-13311?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.7 | CVSS 4.0 | 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 | harborist |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | harborist |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-13311 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: partial (CISA ADP, June 25, 2026)
- EPSS
- 0.41% probability of exploitation activity in the next 30 days, percentile 37.0 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-407 Inefficient Algorithmic Complexity
Where are the vendor advisories and references?
- GHSA-395f-4hp3-45gv vendor-advisory
- https://www.npmjs.com/package/shell-quote product
Who found and reported it?
- bibu123456 (finder)
- Kayiz-PT (coordinator)
- ljharb (remediation developer)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- June 25, 2026
- Published
- June 25, 2026, 04:48 UTC
- CVE record updated
- June 25, 2026, 12:49 UTC by harborist
- NVD
- Analyzed, last modified October 25, 2026, 23:10 UTC
- Last checked
- CVE list November 19, 2026, 07:08 UTC; NVD November 19, 2026, 07:10 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
Questions about CVE-2026-13311
Is CVE-2026-13311 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 0.41% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of ljharb shell-quote are affected by CVE-2026-13311?
shell-quote before 1.9.0, per the GitHub advisory GHSA-395f-4hp3-45gv. The tables above give every range the sources list.
Which version fixes CVE-2026-13311?
1.9.0, per the GitHub advisory GHSA-395f-4hp3-45gv. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-13311?
High (8.7, CVSS 4.0, from harborist). The severity table above shows each score with its source.
Where is the official record of CVE-2026-13311?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.