{"id":"CVE-2026-73413","published":"2026-08-12T19:40:46Z","modified":"2026-08-13T14:18:12Z","title":"Shescape: Quadratic-time denial of service in flag-protection","vendor":"ericcornelissen","product":"shescape","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0059,"percentile":0.49117,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://github.com/ericcornelissen/shescape/security/advisories/GHSA-gm3r-q2wp-hw87","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ericcornelissen/shescape/pull/2649","tags":["x_refsource_MISC"]},{"url":"https://github.com/ericcornelissen/shescape/pull/2651","tags":["x_refsource_MISC"]},{"url":"https://github.com/ericcornelissen/shescape/commit/43d70b59d09bbe5c3fd02ef08b3a123e977ed9de","tags":["x_refsource_MISC"]},{"url":"https://github.com/ericcornelissen/shescape/commit/b4b34c394e7f9da2775bb75381066b9a228c425f","tags":["x_refsource_MISC"]},{"url":"https://github.com/ericcornelissen/shescape/releases/tag/v2.1.14","tags":["x_refsource_MISC"]},{"url":"https://github.com/ericcornelissen/shescape/releases/tag/v3.0.1","tags":["x_refsource_MISC"]}],"priority":{"score":15.9,"factors":[{"name":"EPSS percentile","points":9.82},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"ericcornelissen","affectedVersions":[{"vendor":"ericcornelissen","product":"shescape","versions":[">= 2.1.11, < 2.1.14",">= 3.0.0, < 3.0.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-08-13T14:17:17.539995Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"shescape","vulnerableRanges":[">=2.1.11, <2.1.14",">=3.0.0, <3.0.1"],"patched":["2.1.14","3.0.1"],"from":["GHSA-gm3r-q2wp-hw87"],"provenance":"source"}],"summary":{"text":"The flaw is a quadratic-time processing issue in the flag-protection loop of the compose function (src/internal/compose.js) in the shescape shell-escape library for JavaScript, affecting the escape, escapeAll, quote, and quoteAll APIs when flagProtection is enabled (the default). An attacker who can supply a large untrusted input containing many flag fragments, over the network with no authentication or user interaction required, can exhaust CPU and cause a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:17:57Z"},"euvd":{"id":"EUVD-2026-57527","exploited":false,"provenance":"source"}}