# CVE-2026-73413: Shescape: Quadratic-time denial of service in flag-protection

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 28% of CVEs (2026-12-01)
- Published: 2026-07-24T22:35:08.000Z
- Modified: 2026-10-24T15:10:00.190Z
- Also known as: GHSA-gm3r-q2wp-hw87
- Weaknesses: CWE-400, CWE-407
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- ericcornelissen shescape: >= 2.1.11, < 2.1.14; >= 3.0.0, < 3.0.1
- shescape (npm): from 2.1.11 before 2.1.14; from 3.0.0 before 3.0.1

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/ericcornelissen/shescape/security/advisories/GHSA-gm3r-q2wp-hw87> (web)
- <https://github.com/ericcornelissen/shescape/pull/2649> (web)
- <https://github.com/ericcornelissen/shescape/pull/2651> (web)
- <https://github.com/ericcornelissen/shescape/commit/43d70b59d09bbe5c3fd02ef08b3a123e977ed9de> (web)
- <https://github.com/ericcornelissen/shescape/commit/b4b34c394e7f9da2775bb75381066b9a228c425f> (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> (package)
- <https://github.com/ericcornelissen/shescape/blob/dea8893a5877893d8d4923dbf253080e08899e6d/docs/migration.md> (web)

## Sources

- CVE List: [CVE-2026-73413](https://www.cve.org/CVERecord?id=CVE-2026-73413), CVE Terms of Use, modified 2026-08-13
- GitHub Advisory Database: [GHSA-gm3r-q2wp-hw87](https://github.com/advisories/GHSA-gm3r-q2wp-hw87), CC-BY-4.0, modified 2026-08-12
- NVD: [CVE-2026-73413](https://nvd.nist.gov/vuln/detail/CVE-2026-73413), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-73413 · Whole record: https://cve.day/CVE-2026-73413.json · Rebuilt by cve.day 2026-11-25T22:59:32.647Z
