# CVE-2023-40185: Shescape on Windows escaping may be bypassed in threaded context

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.68%, higher than 53% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-08-22T18:00:04.000Z
- Modified: 2026-06-17T06:16:37.013Z
- Also known as: GHSA-j55r-787p-m549
- Weaknesses: CWE-150
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- ericcornelissen shescape: < 1.7.4
- shescape (npm): before 1.7.4
- shescape_project shescape: before 1.7.4

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L`
- GitHub: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N`
- NVD: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N`

## References

- <https://github.com/ericcornelissen/shescape/security/advisories/GHSA-j55r-787p-m549> (exploit, patch, vendor-advisory, web)
- <https://github.com/ericcornelissen/shescape/pull/1142> (patch, web)
- <https://github.com/ericcornelissen/shescape/commit/0b976dab645abf45ffd85e74a8c6e51ee2f42d63> (patch, web)
- <https://github.com/ericcornelissen/shescape/releases/tag/v1.7.4> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-40185> (advisory)
- <https://github.com/ericcornelissen/shescape> (package)

## Sources

- CVE List: [CVE-2023-40185](https://www.cve.org/CVERecord?id=CVE-2023-40185), CVE Terms of Use, modified 2024-09-30
- GitHub Advisory Database: [GHSA-j55r-787p-m549](https://github.com/advisories/GHSA-j55r-787p-m549), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2023-40185](https://nvd.nist.gov/vuln/detail/CVE-2023-40185), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-40185 · Whole record: https://cve.day/CVE-2023-40185.json · Rebuilt by cve.day 2026-11-25T22:58:27.322Z
