Inefficient Algorithmic Complexity Affecting shescape package, versions >=2.1.11 <2.1.14>=3.0.0 <3.0.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-SHESCAPE-18319522
  • published26 Jul 2026
  • disclosed24 Jul 2026
  • creditoran-s

Introduced: 24 Jul 2026

New CVE NOT AVAILABLE CWE-407  (opens in a new tab)

How to fix?

Upgrade shescape to version 2.1.14, 3.0.1 or higher.

Overview

shescape is a simple shell escape library

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity in the flagProtection process. An attacker can cause significant resource exhaustion by submitting specially crafted large inputs, leading to degraded performance or service unavailability.

Workaround

This vulnerability can be mitigated by restricting the length of untrusted input or stripping all content before the last '-' from untrusted inputs.

CVSS Base Scores

version 4.0
version 3.1