CVE-2026-73413
Shescape is a simple shell escape library for JavaScript. From …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/ericcornelissen/shescape/commit/43d70b59d09bbe5c3fd02ef08b3a123e977ed9de
- github.com/ericcornelissen/shescape/commit/b4b34c394e7f9da2775bb75381066b9a228c425f
- github.com/ericcornelissen/shescape/pull/2649
- github.com/ericcornelissen/shescape/pull/2651
- github.com/ericcornelissen/shescape/releases/tag/v2.1.14
- github.com/ericcornelissen/shescape/releases/tag/v3.0.1
- github.com/ericcornelissen/shescape/security/advisories/GHSA-gm3r-q2wp-hw87
- github.com/ericcornelissen/shescape/blob/dea8893a5877893d8d4923dbf253080e08899e6d/docs/mig
- nvd.nist.gov/vuln/detail/CVE-2026-73413
- cve.org/CVERecord?id=CVE-2026-73413
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.