CVE-2026-73411: Shescape: Home-directory disclosure in assignment context on Unix with Dash
Shescape is a simple shell escape library for JavaScript. Prior to 2.1.14 and 3.0.1, getEscapeFunction in src/internal/unix/dash.js fails to escape ~ after : or = when applications use the escape or escapeAll APIs on Unix with shell set to dash, or with shell set to true when Dash is the default, and interpolate the result into an assignment prefixed to a command. An attacker who controls the input can supply a value such as :~ to disclose the home-directory path and may change the location on which the command operates. This issue is fixed in versions 2.1.14 and 3.0.1.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Shescapeto a version that resolves this vulnerability.Fixed in 2.1.14 - Upgrade
Upgrade
Shescapeto a version that resolves this vulnerability.Fixed in 3.0.1
Event History
Frequently Asked Questions
What is the severity of CVE-2026-73411?
CVE-2026-73411 has a risk rating of 26, indicating a significant potential impact.
How do I fix CVE-2026-73411?
To mitigate CVE-2026-73411, update Shescape to versions 2.1.14 or 3.0.1 or later.
What type of vulnerability is CVE-2026-73411?
CVE-2026-73411 is classified as an information leak vulnerability.
Which software is affected by CVE-2026-73411?
CVE-2026-73411 affects the Shescape library, specifically versions prior to 2.1.14 and 3.0.1.
On which platforms does CVE-2026-73411 exist?
CVE-2026-73411 exists on Unix systems when using the Dash shell.