Improper Encoding or Escaping of Output Affecting shescape package, versions <2.1.15>=3.0.0 <3.0.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.21% (12th 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-18855681
  • published16 Aug 2026
  • disclosed16 Aug 2026
  • creditalimony

Introduced: 16 Aug 2026

NewCVE-2026-73055  (opens in a new tab)
CWE-116  (opens in a new tab)

How to fix?

Upgrade shescape to version 2.1.15, 3.0.2 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 the getEscapeFunction logic in src/internal/unix/busybox.js. An attacker can reveal the user's home directory and alter how a command interprets an assignment-prefixed value by supplying input such as :~ or a=~ to escape or escapeAll when Unix shell escaping targets BusyBox sh. On affected Unix systems where shell is set to "sh" or true and /bin/sh points to BusyBox, the escaped tilde is expanded in assignment contexts instead of being treated as data, causing commands like V=...; echo $V to print : followed by the home path.

CVSS Base Scores

version 4.0
version 3.1