CVE-2023-40185
HIGH 8.6CVSS 3.1Shescape on Windows escaping may be bypassed in threaded context
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.
- Published
- 23 Aug 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-150
- Also known as
- GHSA-j55r-787p-m549
- Sources
- NVDJSONOSV GHSA-j55r-787p-m549JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | shescape_project | shescapecpe:2.3:a:shescape_project:shescape:*:*:*:*:*:node.js:*:* |
< 1.7.4 | 1.7.4 |
| OSV | npm | shescape | < 1.7.4 | 1.7.4 |
References
- https://github.com/ericcornelissen/shescape/commit/0b976dab645abf45ffd85e74a8c6e51ee2f42d63 · Patch, WEB
- https://github.com/ericcornelissen/shescape/pull/1142 · Patch, WEB
- https://github.com/ericcornelissen/shescape/releases/tag/v1.7.4 · Release Notes, WEB
- https://github.com/ericcornelissen/shescape/security/advisories/GHSA-j55r-787p-m549 · Exploit, Patch, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-40185 · ADVISORY
- https://github.com/ericcornelissen/shescape · PACKAGE
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 23 Aug 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 22 Aug 2023)