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

Published Aug 12, 2026
·
Updated

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.

Affected Software

4 affected components
npm/shescape>=2.1.11<=2.1.13
npm/shescape>2.1.13<3.0.1
npm/shescape>=2.1.14<=2.1.14
npm/shescape=3.0.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Shescape to a version that resolves this vulnerability.

    Fixed in 2.1.14
  2. Upgrade

    Upgrade Shescape to a version that resolves this vulnerability.

    Fixed in 3.0.1

Event History

Aug 12, 2026
CVE Published
via MITRE·07:40 PM
Data Sourced
via MITRE·07:40 PM
DescriptionWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-73413?

CVE-2026-73413 has a risk score of 29, indicating a potential vulnerability that may lead to denial of service.

2

How do I fix CVE-2026-73413?

To fix CVE-2026-73413, update Shescape to version 2.1.15 or later, or 3.0.2 or later.

3

What versions of Shescape are affected by CVE-2026-73413?

CVE-2026-73413 affects Shescape versions 2.1.11 through 2.1.14 and version 3.0.1.

4

What type of vulnerability is CVE-2026-73413?

CVE-2026-73413 is a quadratic-time denial of service vulnerability that affects the flag-protection feature in Shescape.

5

Is CVE-2026-73413 a critical vulnerability?

While CVE-2026-73413 is not rated as critical, its quadratic nature can lead to significant performance degradation under certain conditions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203