{"answers":{"affected":"4 open source packages ship an affected version, including shescape.","exploited":"There is no known exploitation of CVE-2026-73413 in the wild and no public exploit code.","fix":"Upgrade shescape to a fixed version for your release line: 2.1.14 or 3.0.1.","what":"CVE-2026-73413 is a high-severity denial of service vulnerability in ericcornelissen shescape, published on 12 Aug 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-73413 and fix it if it is affected.\n\nWhat it is: CVE-2026-73413 is a high-severity denial of service vulnerability in ericcornelissen shescape, published on 12 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-73413 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- shescape (npm): affected from 2.1.11; fixed in 2.1.14\n- shescape (npm): affected from 2.1.11; fixed in 2.1.14\n- shescape (npm): affected from 3.0.0; fixed in 3.0.1\n- shescape (npm): affected from 3.0.0; fixed in 3.0.1\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-73413/ (Markdown: https://insights.sbomify.com/CVE-2026-73413/index.md)","id":"CVE-2026-73413","markdown":"https://insights.sbomify.com/CVE-2026-73413/index.md","name":"CVE-2026-73413","record":{"aliases":["GHSA-gm3r-q2wp-hw87"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript shell escape library","requires_auth":"none","summary":"An attacker can cause denial of service by supplying large inputs to the Shescape library, consuming excessive CPU resources due to quadratic time complexity in flag protection.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"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"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"Shescape is a simple shell escape library for JavaScript. From 2.1.11 until 2.1.14 and 3.0.1, the flag-protection loop in compose in src/internal/compose.js repeatedly joins and slices flag fragments when flagProtection is enabled, which is the default, making processing quadratic in input size across the escape, escapeAll, quote, and quoteAll APIs. An attacker who can supply a large untrusted input containing many flag fragments can consume CPU and cause denial of service. This issue is fixed in versions 2.1.14 and 3.0.1.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Shescape: Quadratic-time denial of service in flag-protection","id":"CVE-2026-73413","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":4,"n_references":7,"next":{"headline":"Shescape: Shell injection via unescaped parentheses on Windows with CMD","id":"CVE-2026-73414"},"packages":[{"ecosystem":"npm","fixed":["2.1.14"],"introduced":["2.1.11"],"last_affected":[],"package":"shescape","purl":null,"source":"GHSA-gm3r-q2wp-hw87"},{"ecosystem":"npm","fixed":["2.1.14"],"introduced":["2.1.11"],"last_affected":[],"package":"shescape","purl":"pkg:npm/shescape","source":"GHSA-gm3r-q2wp-hw87"},{"ecosystem":"npm","fixed":["3.0.1"],"introduced":["3.0.0"],"last_affected":[],"package":"shescape","purl":null,"source":"GHSA-gm3r-q2wp-hw87"},{"ecosystem":"npm","fixed":["3.0.1"],"introduced":["3.0.0"],"last_affected":[],"package":"shescape","purl":"pkg:npm/shescape","source":"GHSA-gm3r-q2wp-hw87"}],"prev":{"headline":"Shescape: Path disclosure on Unix with Zsh","id":"CVE-2026-73412"},"products":["shescape"],"published":"2026-08-12","related":[],"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-13","vendors":["ericcornelissen"]},"summary":"An attacker can cause denial of service by supplying large inputs to the Shescape library, consuming excessive CPU resources due to quadratic time complexity in flag protection.","url":"https://insights.sbomify.com/CVE-2026-73413/"}