{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-24725","published":"2022-03-03T22:15:08.950000Z","last_modified":"2026-06-17T04:32:22.800000Z","status":"Modified","cvss":{"version":"3.1","score":5.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-200","CWE-78"],"cpes":[{"criteria":"cpe:2.3:a:shescape_project:shescape:*:*:*:*:*:node.js:*:*","part":"a","vendor":"shescape_project","product":"shescape","version_start_including":"1.4.0","version_end_excluding":"1.5.1"}],"cpes_truncated":false,"vendors":["shescape_project"],"products":["shescape_project/shescape"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00646,"percentile":0.45627,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-446w-rrm4-r47f","ecosystem":"npm","name":"shescape","purl":"pkg:npm/shescape","ranges":[{"introduced":"1.4.0","fixed":"1.5.1"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":33,"links":{"html_es":"/es/cve/CVE-2022-24725/","html_en":"/en/cve/CVE-2022-24725/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-24725","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-24725"},"untrusted":{"vendor_name":"Shescape Project","product_name":"Shescape","desc_en":"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, \"\\\\~\")`.","affected":[{"untrusted_vendor":"ericcornelissen","untrusted_product":"shescape","versions":[]}],"references":[{"url":"https://github.com/ericcornelissen/shescape/issues/169","tags":["Exploit","Issue Tracking","Third Party Advisory"]},{"url":"https://github.com/ericcornelissen/shescape/pull/170","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/ericcornelissen/shescape/security/advisories/GHSA-446w-rrm4-r47f","tags":["Exploit","Third Party Advisory"]}]}}