# CVE-2026-73411: Shescape: Home-directory disclosure in assignment context on Unix with Dash

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 28% of CVEs (2026-12-01)
- Published: 2026-07-24T22:34:39.000Z
- Modified: 2026-10-24T15:10:00.190Z
- Also known as: GHSA-q53c-4prm-w95q
- Weaknesses: CWE-116, CWE-200
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- ericcornelissen shescape: < 2.1.14; >= 3.0.0, < 3.0.1
- shescape (npm): before 2.1.14; from 3.0.0 before 3.0.1

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/ericcornelissen/shescape/security/advisories/GHSA-q53c-4prm-w95q> (web)
- <https://github.com/ericcornelissen/shescape/pull/2649> (web)
- <https://github.com/ericcornelissen/shescape/pull/2651> (web)
- <https://github.com/ericcornelissen/shescape/commit/43d70b59d09bbe5c3fd02ef08b3a123e977ed9de> (web)
- <https://github.com/ericcornelissen/shescape/commit/b4b34c394e7f9da2775bb75381066b9a228c425f> (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> (package)
- <https://github.com/ericcornelissen/shescape/blob/dea8893a5877893d8d4923dbf253080e08899e6d/docs/migration.md> (web)

## Sources

- CVE List: [CVE-2026-73411](https://www.cve.org/CVERecord?id=CVE-2026-73411), CVE Terms of Use, modified 2026-08-12
- GitHub Advisory Database: [GHSA-q53c-4prm-w95q](https://github.com/advisories/GHSA-q53c-4prm-w95q), CC-BY-4.0, modified 2026-08-12
- NVD: [CVE-2026-73411](https://nvd.nist.gov/vuln/detail/CVE-2026-73411), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-73411 · Whole record: https://cve.day/CVE-2026-73411.json · Rebuilt by cve.day 2026-11-25T22:59:32.646Z
