CVE-2026-73412

Shescape: Path disclosure on Unix with Zsh

Published Aug 12, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Ericcornelissen
Ericcornelissen shescape
Vendors & Products Ericcornelissen
Ericcornelissen shescape
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'}

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')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 13, 2026, 12:38 PM
Reserved
Aug 12, 2026, 2:32 PM
Status
Deferred
Published
Aug 12, 2026, 8:17 PM
Modified
Oct 24, 2026, 3:10 PM