{"answers":{"affected":"2 open source packages ship an affected version, including shell-quote. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-13311 exists.","fix":"Upgrade shell-quote to 1.9.0 or later.","what":"CVE-2026-13311 is a high-severity denial of service vulnerability in ljharb shell-quote, published on 25 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-13311 and fix it if it is affected.\n\nWhat it is: CVE-2026-13311 is a high-severity denial of service vulnerability in ljharb shell-quote, published on 25 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-13311 exists.\n\nAffected packages and fixed versions:\n- shell-quote (npm): affected all versions; fixed in 1.9.0\n- shell-quote (npm): affected all versions; fixed in 1.9.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-13311/ (Markdown: https://insights.sbomify.com/CVE-2026-13311/index.md)","id":"CVE-2026-13311","markdown":"https://insights.sbomify.com/CVE-2026-13311/index.md","name":"CVE-2026-13311","record":{"aliases":["CLEANSTART-2026-AC35633","CLEANSTART-2026-XS33213","CLEANSTART-2026-ZX58029","CLSA-2026-1791584881","DEBIAN-CVE-2026-13311","ECHO-3f83-8535-51d8","GHSA-395f-4hp3-45gv","MINI-2gm8-23c5-9pgp","MINI-3m6j-x6q5-p866","MINI-4r84-m755-cx8j","MINI-5x62-fmr3-4qj6","MINI-7c8p-m6x9-p4wq","MINI-8gpv-rqqp-r73h","MINI-hj9x-286m-hm69","MINI-hwx8-r398-gmqg","MINI-pqhq-cjfg-4wp9","MINI-prvc-vgv8-63w2","MINI-r9xr-vvww-r5pw","ROOT-APP-NPM-CVE-2026-13311","UBUNTU-CVE-2026-13311","openSUSE-SU-2026:11472-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js shell parsing library","requires_auth":"none","summary":"An attacker can cause a denial of service by supplying a crafted string to shell-quote's parse function, blocking the Node.js event loop.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"harborist","cpe":[{"product":"shell-quote","vendor":"shell-quote_project"}],"cvss":{"score":8.7,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"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.","ecosystems":["npm","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"shell-quote parse() is quadratic in token count, enabling denial of service","id":"CVE-2026-13311","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"Security feature bypass in Router","id":"CVE-2026-13313"},"packages":[{"ecosystem":"npm","fixed":["1.9.0"],"introduced":["0"],"last_affected":[],"package":"shell-quote","purl":null,"source":"GHSA-395f-4hp3-45gv"},{"ecosystem":"npm","fixed":["1.9.0"],"introduced":["0"],"last_affected":[],"package":"shell-quote","purl":"pkg:npm/shell-quote","source":"GHSA-395f-4hp3-45gv"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["23+75.1a877fb50-50.1"],"introduced":["0"],"last_affected":[],"package":"agama-web-ui","purl":"pkg:rpm/opensuse/agama-web-ui\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11472-1"}],"prev":{"headline":"Autel MaxiCharger AC Elite Home NFC Stack-based Buffer Overflow Arbitrary Code Execution Vulnerability","id":"CVE-2026-13309"},"products":["shell-quote"],"published":"2026-06-25","related":[{"cvss_score":9.8,"headline":"Improper Neutralization of Special Elements used in a Command in Shell-quote","id":"CVE-2021-42740","kev_date_added":null,"published":"2021-10-21"},{"cvss_score":9.8,"headline":"Potential Command Injection in shell-quote","id":"CVE-2016-10541","kev_date_added":null,"published":"2018-05-31"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-25","vendors":["ljharb"]},"summary":"An attacker can cause a denial of service by supplying a crafted string to shell-quote's parse function, blocking the Node.js event loop.","url":"https://insights.sbomify.com/CVE-2026-13311/"}