Improper Neutralization 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

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-18319518
  • published26 Jul 2026
  • disclosed24 Jul 2026
  • creditoran-s

Introduced: 24 Jul 2026

New CVE NOT AVAILABLE CWE-150  (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 Improper Neutralization via the escape or escapeAll APIs when processing untrusted input containing parentheses on Windows systems configured to use CMD as the shell. An attacker can execute arbitrary commands by injecting specially crafted input that is not properly escaped. This is only exploitable if the application is running on Windows and explicitly configures the shell to CMD or relies on CMD as the default shell.

Workaround

This vulnerability can be mitigated by removing all instances of ( and ) from untrusted inputs.

CVSS Base Scores

version 4.0
version 3.1