{"id":"CVE-2023-40185","published":"2023-08-23T20:20:45Z","modified":"2024-09-30T19:14:01Z","title":"Shescape on Windows escaping may be bypassed in threaded context","vendor":"ericcornelissen","product":"shescape","tier":"tail","description":{"text":"shescape is simple shell escape library for JavaScript. This may impact users that use Shescape on Windows in a threaded context. The vulnerability can result in Shescape escaping (or quoting) for the wrong shell, thus allowing attackers to bypass protections depending on the combination of expected and used shell. This bug has been patched in version 1.7.4.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00706,"percentile":0.49014,"provenance":"source"},"cwes":[{"id":"CWE-150","name":"Improper Neutralization of Escape, Meta, or Control Sequences"}],"references":[{"url":"https://github.com/ericcornelissen/shescape/security/advisories/GHSA-j55r-787p-m549","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ericcornelissen/shescape/pull/1142","tags":["x_refsource_MISC"]},{"url":"https://github.com/ericcornelissen/shescape/commit/0b976dab645abf45ffd85e74a8c6e51ee2f42d63","tags":["x_refsource_MISC"]},{"url":"https://github.com/ericcornelissen/shescape/releases/tag/v1.7.4","tags":["x_refsource_MISC"]}],"priority":{"score":14.4,"factors":[{"name":"EPSS percentile","points":9.8},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"ericcornelissen","affectedVersions":[{"vendor":"ericcornelissen","product":"shescape","versions":["< 1.7.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-30T19:09:19.179504Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"shescape","vulnerableRanges":["<1.7.4"],"patched":["1.7.4"],"from":["GHSA-j55r-787p-m549"],"provenance":"source"}],"summary":{"text":"The vulnerability is in the shescape shell escaping library for JavaScript, where Shescape on Windows may escape or quote arguments for the wrong shell when used in a threaded context. An attacker with network access and no privileges could bypass the library's protections by exploiting this mismatch between the expected and the actual shell, though exploitation requires a high-complexity condition that depends on the particular combination of expected and used shell.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:11Z"},"euvd":{"id":"EUVD-2023-2309","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-31180","published":"2022-08-01","fixed":"1.5.8","kev":false},{"cve":"CVE-2022-25918","published":"2022-10-27","fixed":"1.6.1","kev":false},{"cve":"CVE-2023-35931","published":"2023-06-23","fixed":"1.7.1","kev":false,"link":{"from":"CVE-2023-35931","to":"CVE-2023-40185","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:shescape","fromFixed":"1.7.1","toFixed":"1.7.4","daysApart":61}]}},{"cve":"CVE-2023-40185","published":"2023-08-23","fixed":"1.7.4","kev":false},{"cve":"CVE-2025-30222","published":"2025-03-25","fixed":"2.1.2","kev":false},{"cve":"CVE-2026-32094","published":"2026-03-11","fixed":"2.1.10","kev":false},{"cve":"CVE-2026-73411","published":"2026-08-12","fixed":"3.0.1","kev":false}],"package":"npm:shescape"}}