Description
Shescape before 2.1.15 (and 3.0.0 before 3.0.2) fails to properly escape tilde (~) characters in assignment contexts on Unix systems where the shell is explicitly configured to "sh" or true and /bin/sh points to BusyBox. Using the escape and escapeAll APIs with untrusted input in an assignment prefixed to a command, an attacker can inject a tilde payload to disclose the user's home directory location and, depending on usage, alter the location on which a command operates.
Published: 2026-08-15
Score: 9.3 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Shescape before 2.1.15 (and 3.0.0 before 3.0.2) fails to escape tilde (~) characters when used in assignment contexts on Unix systems that have the shell explicitly configured to "sh" or true and /bin/sh points to BusyBox. Through the escape and escapeAll APIs, an attacker can inject a tilde payload into an untrusted input that precedes a command, enabling the disclosure of the current user's home directory path and, in some usage patterns, the alteration of the working directory on which the command executes.

Affected Systems

The impacted software is the shescape_project's shescape Node.js library. Versions prior to 2.1.15 and before 3.0.2 are vulnerable. The flaw manifests on Unix-like environments where /bin/sh is linked to BusyBox and the shell is set to sh or true.

Risk and Exploitability

The CVSS score of 9.3 signifies a critical severity. EPSS is not available, and the issue is not listed in the CISA KEV catalog, but the exploit remains feasible for any software that incorporates shescape and accepts user-supplied input for command construction. An attacker can leverage the library's escape functions locally or potentially within a compromised application to reveal the home directory and influence command execution, posing significant privacy and integrity risks.

Generated by OpenCVE AI on August 15, 2026 at 23:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to shescape 2.1.15 or later (or 3.0.2).
  • Do not feed untrusted input into escape or escapeAll; sanitize or remove tilde characters before using these APIs.
  • Avoid running applications that rely on shescape when /bin/sh is a BusyBox implementation and the shell is configured to sh or true; alternatively, configure the system to use a different shell when invoking commands that use shescape.

Generated by OpenCVE AI on August 15, 2026 at 23:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 15 Aug 2026 22:00:00 +0000

Type Values Removed Values Added
Description Shescape before 2.1.15 (and 3.0.0 before 3.0.2) fails to properly escape tilde (~) characters in assignment contexts on Unix systems where the shell is explicitly configured to "sh" or true and /bin/sh points to BusyBox. Using the escape and escapeAll APIs with untrusted input in an assignment prefixed to a command, an attacker can inject a tilde payload to disclose the user's home directory location and, depending on usage, alter the location on which a command operates.
Title Shescape before 2.1.15 Home Directory Disclosure via BusyBox
First Time appeared Shescape Project
Shescape Project shescape
Weaknesses CWE-116
CPEs cpe:2.3:a:shescape_project:shescape:*:*:*:*:*:node.js:*:*
Vendors & Products Shescape Project
Shescape Project shescape
References
Metrics cvssV3_1

{'score': 4.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N'}

cvssV4_0

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


Subscriptions

Shescape Project Shescape
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-15T21:44:54.677Z

Reserved: 2026-08-10T19:10:18.101Z

Link: CVE-2026-73055

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T22:16:55.427

Modified: 2026-08-15T22:16:55.427

Link: CVE-2026-73055

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-15T23:30:16Z

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output