Symlink Attack Affecting shescape package, versions <2.1.9


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

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-15440479
  • published8 Mar 2026
  • disclosed7 Mar 2026
  • creditUnknown

Introduced: 7 Mar 2026

NewCVE-2026-30916  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade shescape to version 2.1.9 or higher.

Overview

shescape is a simple shell escape library

Affected versions of this package are vulnerable to Symlink Attack in resolving shells in unix.js. An attacker can expose sensitive information by configuring the shell path as a symbolic link to another symlink, which may bypass proper escaping in the second shell and lead to unintended command execution.

CVSS Base Scores

version 4.0
version 3.1