{"id":"CVE-2026-73411","published":"2026-08-12T19:33:02Z","modified":"2026-08-12T20:54:38Z","title":"Shescape: Home-directory disclosure in assignment context on Unix with Dash","vendor":"ericcornelissen","product":"shescape","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0059,"percentile":0.4217,"provenance":"source"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/ericcornelissen/shescape/security/advisories/GHSA-q53c-4prm-w95q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ericcornelissen/shescape/pull/2649","tags":["x_refsource_MISC"]},{"url":"https://github.com/ericcornelissen/shescape/pull/2651","tags":["x_refsource_MISC"]},{"url":"https://github.com/ericcornelissen/shescape/commit/43d70b59d09bbe5c3fd02ef08b3a123e977ed9de","tags":["x_refsource_MISC"]},{"url":"https://github.com/ericcornelissen/shescape/commit/b4b34c394e7f9da2775bb75381066b9a228c425f","tags":["x_refsource_MISC"]},{"url":"https://github.com/ericcornelissen/shescape/releases/tag/v2.1.14","tags":["x_refsource_MISC"]},{"url":"https://github.com/ericcornelissen/shescape/releases/tag/v3.0.1","tags":["x_refsource_MISC"]}],"priority":{"score":12.8,"factors":[{"name":"EPSS percentile","points":8.43},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"ericcornelissen","affectedVersions":[{"vendor":"ericcornelissen","product":"shescape","versions":["< 2.1.14",">= 3.0.0, < 3.0.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-12T20:36:06.283575Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"shescape","vulnerableRanges":["<2.1.14",">=3.0.0, <3.0.1"],"patched":["2.1.14","3.0.1"],"from":["GHSA-q53c-4prm-w95q"],"provenance":"source"}],"summary":{"text":"Shescape, a shell escape library for JavaScript, contains a flaw in its Dash-specific escaping routine (getEscapeFunction in src/internal/unix/dash.js) that fails to escape a tilde appearing after a colon or equals sign. An attacker who can supply input to an application that interpolates Shescape's escaped output into a command-prefixed variable assignment on Unix with Dash can exploit this remotely without authentication or user interaction, using a crafted value such as :~ to reveal the home-directory path and alter the location the command operates on.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:33Z"},"euvd":{"id":"EUVD-2026-57518","exploited":false,"provenance":"source"}}