NPM · JULY 2026 · EARLY WARNING

shescape npm Package Vulnerability: Shell Injection Risk on Windows

EARLY WARNING · UNCONFIRMED. This page describes a developing threat that 0Day surfaced from early signals and has not yet independently confirmed. Details may change. Always verify against the primary sources before acting.
GHSA-W4HW-QCX7-56PRSeverity: HIGH

The shescape npm package is reportedly vulnerable to shell injection via unescaped parentheses on Windows with CMD. Users of versions <2.1.14 or <3.0.1 should upgrade.

What happened

An early warning has been issued regarding a potential shell injection vulnerability in the shescape npm package. This vulnerability, tracked as GHSA-w4hw-qcx7-56pr, appears to affect versions of shescape prior to 2.1.14 and 3.0.1 when used on Windows with CMD. The issue arises from unescaped parentheses, which can allow an attacker to achieve shell injection depending on the original command.

The vulnerability has been patched in versions 2.1.14 and 3.0.1. It is recommended that users upgrade to one of these versions to mitigate the risk. If you are already using version 3, no further changes are required. If you are using version 2, it is advised to follow the migration guide to upgrade to version 3.

Professional software engineers assessing their exposure should consult the primary sources for more detailed information. The severity of this issue is currently under investigation, and it is important to stay updated with the latest advisories from the GitHub Advisory Database.

How 0Day mitigates this

MATCHED TO YOUR ACTUAL DEPENDENCY GRAPH0Day matches every incoming threat signal against your GitHub organization’s full dependency graph, including transitive dependencies. If shescape is anywhere in your dependency tree, the engineers who own the affected repositories get a push alert the moment it is flagged — no manual audit to remember to run.

Read how this differs from waiting on a scanner to catch a known advisory, or see the exact, read-only access 0Day needs to do this for an organization.

Join the 0Day waitlist →

← Back to all threats