CVE-2026-73411
MEDIUM 6.3CVSS 4.0Shescape: 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.
- Published
- 12 Aug 2026
- Last modified
- 24 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-116CWE-200
- Also known as
- GHSA-q53c-4prm-w95q
- Sources
- NVDJSONOSV GHSA-q53c-4prm-w95qJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.3 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | shescape | < 2.1.14 | 2.1.14 |
| OSV | npm | shescape | >= 3.0.0, < 3.0.1 | 3.0.1 |
References
- https://github.com/ericcornelissen/shescape/commit/43d70b59d09bbe5c3fd02ef08b3a123e977ed9de · WEB
- https://github.com/ericcornelissen/shescape/commit/b4b34c394e7f9da2775bb75381066b9a228c425f · WEB
- https://github.com/ericcornelissen/shescape/pull/2649 · WEB
- https://github.com/ericcornelissen/shescape/pull/2651 · WEB
- https://github.com/ericcornelissen/shescape/releases/tag/v2.1.14 · WEB
- https://github.com/ericcornelissen/shescape/releases/tag/v3.0.1 · WEB
- https://github.com/ericcornelissen/shescape/security/advisories/GHSA-q53c-4prm-w95q · WEB
- https://github.com/ericcornelissen/shescape · PACKAGE
- https://github.com/ericcornelissen/shescape/blob/dea8893a5877893d8d4923dbf253080e08899e6d/docs/migration.md · WEB
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 12 Aug 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 Jul 2026)