{"id":"DEBIAN-CVE-2026-13311","details":"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.","modified":"2026-08-27T23:05:51.734668051Z","published":"2026-06-25T05:16:52.763Z","upstream":["CVE-2026-13311"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-13311"}],"affected":[{"package":{"name":"node-shell-quote","ecosystem":"Debian:12","purl":"pkg:deb/debian/node-shell-quote?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.10.0-1","1.7.4+~1.7.1-1","1.7.4+~1.7.1-1+deb12u1","1.7.4+~1.7.1-2","1.8.3+~1.7.5-1","1.8.4+~1.7.5-1","1.9.0+~1.7.5-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2026-13311.json"}},{"package":{"name":"node-shell-quote","ecosystem":"Debian:13","purl":"pkg:deb/debian/node-shell-quote?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.10.0-1","1.7.4+~1.7.1-1","1.7.4+~1.7.1-1+deb13u1","1.7.4+~1.7.1-2","1.8.3+~1.7.5-1","1.8.4+~1.7.5-1","1.9.0+~1.7.5-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2026-13311.json"}},{"package":{"name":"node-shell-quote","ecosystem":"Debian:14","purl":"pkg:deb/debian/node-shell-quote?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.0+~1.7.5-1"}]}],"versions":["1.7.4+~1.7.1-1","1.7.4+~1.7.1-2","1.8.3+~1.7.5-1","1.8.4+~1.7.5-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2026-13311.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"}]}