CVE-2026-73413
HIGH 8.7CVSS 4.0Shescape: Quadratic-time denial of service in the flag-protection
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.
- Published
- 12 Aug 2026
- Last modified
- 24 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-400CWE-407
- Also known as
- GHSA-gm3r-q2wp-hw87
- Sources
- NVDJSONOSV GHSA-gm3r-q2wp-hw87JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.7 | 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 |
| OSV | GitHub | CVSS 4.0 | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | shescape | >= 2.1.11, < 2.1.14 | 2.1.14 |
| OSV | npm | shescape | >= 3.0.0, < 3.0.1 | 3.0.1 |
References
- https://github.com/ericcornelissen/shescape/commit/43d70b59d09bbe5c3fd02ef08b3a123e977ed9de · WEB
- https://github.com/ericcornelissen/shescape/commit/b4b34c394e7f9da2775bb75381066b9a228c425f · WEB
- https://github.com/ericcornelissen/shescape/pull/2649 · WEB
- https://github.com/ericcornelissen/shescape/pull/2651 · WEB
- https://github.com/ericcornelissen/shescape/releases/tag/v2.1.14 · WEB
- https://github.com/ericcornelissen/shescape/releases/tag/v3.0.1 · WEB
- https://github.com/ericcornelissen/shescape/security/advisories/GHSA-gm3r-q2wp-hw87 · WEB
- https://github.com/ericcornelissen/shescape · PACKAGE
- https://github.com/ericcornelissen/shescape/blob/dea8893a5877893d8d4923dbf253080e08899e6d/docs/migration.md · WEB
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 12 Aug 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 Jul 2026)