{"id":"CVE-2026-13311","revision":"63a3bb6ea5b2435ca9d3e66cd26c187c","records":[{"revision":"63a3bb6ea5b2435ca9d3e66cd26c187c","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-13311","aliases":[],"title":"shell-quote parse() is quadratic in token count, enabling denial of service","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.","state":0,"publishedAt":"2026-06-25T04:48:36.351+00:00","modifiedAt":"2026-06-25T12:49:41.978+00:00","affected":[{"ecosystem":"https://www.npmjs.com/package","name":"shell-quote","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"ljharb\",\n                    \"product\": \"shell-quote\",\n                    \"collectionURL\": \"https://www.npmjs.com/package\",\n                    \"packageName\": \"shell-quote\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"0\",\n                            \"lessThanOrEqual\": \"1.8.4\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"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","score":8.7,"severity":"HIGH"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":"HIGH"}],"references":["https://github.com/ljharb/shell-quote/security/advisories/GHSA-395f-4hp3-45gv","https://www.npmjs.com/package/shell-quote"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-13311","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-13311","identifiers":["CVE-2026-13311"]},"retained":false,"historicalAffected":[]}],"coverage":[]}