Command Injection Affecting shescape package, versions <2.1.14>=3.0.0 <3.0.1


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.48% (40th 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 Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-SHESCAPE-18752073
  • published13 Aug 2026
  • disclosed12 Aug 2026
  • creditoran-s

Introduced: 12 Aug 2026

NewCVE-2026-73414  (opens in a new tab)
CWE-78  (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 Command Injection via the getEscapeFunction function when using the escape or escapeAll APIs on Windows with shell set to cmd.exe, or with shell set to true when CMD is the default. An attacker can execute arbitrary commands by supplying specially crafted arguments that break out of a parenthesized CMD construct and inject shell syntax.

CVSS Base Scores

version 4.0
version 3.1