{"id":"UBUNTU-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-06-29T21:18:15Z","published":"2026-06-25T05:16:00Z","upstream":["CVE-2026-13311"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-13311"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-13311"},{"type":"REPORT","url":"https://github.com/ljharb/shell-quote/security/advisories/GHSA-395f-4hp3-45gv"},{"type":"REPORT","url":"https://www.npmjs.com/package/shell-quote"}],"affected":[{"package":{"name":"node-shell-quote","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/node-shell-quote?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.1+20160617-git72fb5a8ce29b-1","1.6.1+20160617-git72fb5a8ce29b-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.6.1+20160617-git72fb5a8ce29b-1ubuntu0.1~esm1","binary_name":"node-shell-quote"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13311.json"}},{"package":{"name":"node-shell-quote","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/node-shell-quote?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.3+~1.7.1-1","1.7.3+~1.7.1-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.7.3+~1.7.1-1ubuntu0.1~esm1","binary_name":"node-shell-quote"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13311.json"}},{"package":{"name":"node-shell-quote","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/node-shell-quote?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.4+~1.7.1-1","1.7.4+~1.7.1-1ubuntu0.24.04.1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.7.4+~1.7.1-1ubuntu0.24.04.1","binary_name":"node-shell-quote"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13311.json"}},{"package":{"name":"node-shell-quote","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/node-shell-quote?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.4+~1.7.1-1","1.7.4+~1.7.1-1ubuntu0.25.10.1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-shell-quote","binary_version":"1.7.4+~1.7.1-1ubuntu0.25.10.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13311.json"}},{"package":{"name":"node-shell-quote","ecosystem":"Ubuntu:Pro:26.04:LTS","purl":"pkg:deb/ubuntu/node-shell-quote?arch=source&distro=esm-apps%2Fresolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.4+~1.7.1-1","1.8.3+~1.7.5-1","1.8.3+~1.7.5-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.8.3+~1.7.5-1ubuntu0.1~esm1","binary_name":"node-shell-quote"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13311.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"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"},{"type":"Ubuntu","score":"medium"}]}