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: 6.3 Medium
EPSS: < 1% Very Low
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 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 6.3 indicates a medium severity. EPSS score is < 1%, 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 31, 2026 at 15:52 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 31, 2026 at 15:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 31 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 31 Aug 2026 14:30:00 +0000

Type Values Removed Values Added
Title Shescape before 2.1.15 Home Directory Disclosure via BusyBox Shescape before 2.1.15 and 3.0.2 Home Directory Disclosure via BusyBox
Weaknesses CWE-200
Metrics 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'}

cvssV4_0

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


Sun, 16 Aug 2026 10:45:00 +0000

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

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

Ericcornelissen Shescape
Shescape Project Shescape
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-31T14:08:21.499Z

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

Link: CVE-2026-73055

cve-icon Vulnrichment

Updated: 2026-08-17T16:00:57.632Z

cve-icon NVD

Status : Deferred

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

Modified: 2026-08-31T15:17:43.303

Link: CVE-2026-73055

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-31T16:00:06Z

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output

  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor