Description
Shescape is a simple shell escape library for JavaScript. Prior to 2.1.14 and 3.0.1, this impacts users of Shescape on Unix systems that explicitly configure shell to Zsh, or true when the default shell is Zsh, using the escape and escapeAll. The Zsh options EXTENDED_GLOB and MAGIC_EQUAL_SUBST exacerbate the problem. In certain case, an attacker can leverage home directory expansion and extended glob syntax to obtain lists of files and directories on the system. Depending on what the command does, this may be used to leak more information. This issue is fixed in versions 2.1.14 and 3.0.1.
Published: 2026-08-12
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Shescape is a JavaScript library that escapes shell input for use in Unix commands. On systems that use Zsh, the library’s escape and escapeAll functions can inadvertently trigger the shell’s extended globbing and home directory expansion, exposing file paths and directory listings. This flaw is rooted in CWE‑155 (Path Manipulation) and CWE‑78 (OS Command Injection), allowing an attacker to learn sensitive system information if the application supplies crafted input to these functions.

Affected Systems

The vulnerability affects ericcornelissen’s shescape library on Unix platforms that employ the Zsh shell. Versions before 2.1.14 and 3.0.1 are susceptible when the application explicitly uses Zsh or defaults to it. Other shells or newer releases are not impacted.

Risk and Exploitability

The CVSS score of 6.3 indicates moderate severity for data disclosure. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog. The likely attack scenario requires an adversary to inject or influence input that passes through the escape or escapeAll functions while the process is running under Zsh; successful exploitation reveals directory contents that may serve as reconnaissance or credential gathering opportunities.

Generated by OpenCVE AI on August 12, 2026 at 23:29 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade shescape to at least version 2.1.14 or 3.0.1, where the path disclosure flaw has been fixed.
  • If an upgrade cannot be performed immediately, disable the Zsh options EXTENDED_GLOB and MAGIC_EQUAL_SUBST to mitigate path expansion exploitation.
  • Avoid using the escape or escapeAll functions in applications that execute under Zsh or replace them with safer alternatives that do not rely on shell globbing.

Generated by OpenCVE AI on August 12, 2026 at 23:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-6v4m-fw66-8r4x Shescape: Path disclosure on Unix with Zsh
History

Thu, 13 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 12 Aug 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Ericcornelissen
Ericcornelissen shescape
Vendors & Products Ericcornelissen
Ericcornelissen shescape

Wed, 12 Aug 2026 19:45:00 +0000

Type Values Removed Values Added
Description Shescape is a simple shell escape library for JavaScript. Prior to 2.1.14 and 3.0.1, this impacts users of Shescape on Unix systems that explicitly configure shell to Zsh, or true when the default shell is Zsh, using the escape and escapeAll. The Zsh options EXTENDED_GLOB and MAGIC_EQUAL_SUBST exacerbate the problem. In certain case, an attacker can leverage home directory expansion and extended glob syntax to obtain lists of files and directories on the system. Depending on what the command does, this may be used to leak more information. This issue is fixed in versions 2.1.14 and 3.0.1.
Title Shescape: Path disclosure on Unix with Zsh
Weaknesses CWE-155
CWE-78
References
Metrics cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Ericcornelissen Shescape
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-13T12:38:03.573Z

Reserved: 2026-08-12T14:32:11.795Z

Link: CVE-2026-73412

cve-icon Vulnrichment

Updated: 2026-08-13T12:37:58.967Z

cve-icon NVD

Status : Received

Published: 2026-08-12T20:17:56.203

Modified: 2026-08-13T13:19:17.387

Link: CVE-2026-73412

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-12T23:30:10Z

Weaknesses
  • CWE-155

    Improper Neutralization of Wildcards or Matching Symbols

  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')