GHSA-446w-rrm4-r47f · Severity: medium · Ecosystem: npm — Exposure of home directory through shescape on Unix with Bash
Shescape is a shell escape package for JavaScript. An issue in versions 1.4.0 to 1.5.1 allows for exposure of the home directory on Unix systems when using Bash with the `escape` or `escapeAll` functions from the _shescape_ API with the `interpolation` option set to `true`. Other tested shells, Dash and Zsh, are not affected. Depending on how the output of _shescape_ is used, directory traversal may be possible in the application using _shescape_. The issue was patched in version 1.5.1. As a workaround, manually escape all instances of the tilde character (`~`) using `arg.replace(/~/g, "\\~")`.
Conclusion & alert: CVE-2022-24725 is rated Exploit Available (53.3/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.49%). Core evidence: 2 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ | |
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.31% | 0.49% | +0.18% |
| 2 | 2025-03-30 | 0.50% | 0.31% | -0.19% |
| 3 | 2025-03-29 | — | 0.50% | — |
Full EPSS history (10 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 6.2 | 3.1 | MEDIUM |
|
2.5 | 3.6 | [email protected] |
| 5.5 | 3.1 | MEDIUM |
|
1.8 | 3.6 | [email protected] |
| 1.9 | 2.0 | LOW |
|
3.4 | 2.9 | [email protected] |
GHSA-446w-rrm4-r47f · Severity: medium · Ecosystem: npm — Exposure of home directory through shescape on Unix with Bash
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| shescape_project | shescape | >= 1.4.0, < 1.5.1 | cpe:2.3:a:shescape_project:shescape:*:*:*:*:*:node.js:*:* |
| URL | Tags |
|---|---|
| https://github.com/ericcornelissen/shescape/issues/169 | Exploit Issue Tracking Third Party Advisory |
| https://github.com/ericcornelissen/shescape/pull/170 | Patch Third Party Advisory |
| https://github.com/ericcornelissen/shescape/security/advisories/GHSA-446w-rrm4-r47f | Exploit Third Party Advisory |