Improper Encoding or Escaping of Output Affecting shescape package, versions <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

Threat Intelligence

EPSS
0.34% (27th percentile)

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-18752076
  • published13 Aug 2026
  • disclosed12 Aug 2026
  • creditUnknown

Introduced: 12 Aug 2026

NewCVE-2026-73411  (opens in a new tab)
CWE-116  (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 Improper Encoding or Escaping of Output via improper escaping in the getEscapeFunction function. An attacker can access sensitive home-directory information and potentially alter the target location of commands by supplying crafted input such as :~ when the escape or escapeAll APIs are used on Unix systems with the shell set to dash, or with shell set to true when Dash is the default, and the result is interpolated into an assignment prefixed to a command.

CVSS Base Scores

version 4.0
version 3.1