CVE-2023-40185
CVE-2023-40185 is a medium-severity vulnerability in Shescape Project Shescape with a CVSS 3.x base score of 6.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-150.
Key facts
- Severity: Medium (CVSS 3.x base score 6.5)
- EPSS exploit prediction: 1% (42nd percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-150
- Affected product: Shescape Project Shescape
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2023-40185?
- 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.
- How severe is CVE-2023-40185?
- CVE-2023-40185 has a CVSS 3.x base score of 6.5, rated medium severity. It is exploitable over network with high attack complexity, requires no privileges and no user interaction. Impact on confidentiality is low, integrity low, and availability low.
- Is CVE-2023-40185 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (42nd percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2023-40185?
- CVE-2023-40185 affects Shescape Project Shescape. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2023-40185?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2023-40185 published?
- CVE-2023-40185 was published on 2023-08-23 and last updated on 2026-06-17.
References
- https://github.com/ericcornelissen/shescape/commit/0b976dab645abf45ffd85e74a8c6e51ee2f42d63
- https://github.com/ericcornelissen/shescape/pull/1142
- https://github.com/ericcornelissen/shescape/releases/tag/v1.7.4
- https://github.com/ericcornelissen/shescape/security/advisories/GHSA-j55r-787p-m549
Affected products (1)
- cpe:2.3:a:shescape_project:shescape:*:*:*:*:*:node.js:*:*
More vulnerabilities in Shescape Project Shescape
- CVE-2022-31180 — Critical (CVSS 9.8): Shescape is a simple shell escape package for JavaScript. Affected versions were found to have insufficient escaping of…
- CVE-2022-31179 — High (CVSS 8.1): Shescape is a simple shell escape package for JavaScript. Versions prior to 1.5.8 were found to be subject to code…
- CVE-2026-32094 — Medium (CVSS 6.5): Shescape is a simple shell escape library for JavaScript. Prior to 2.1.10, Shescape#escape() does not escape…
- CVE-2021-21384 — Medium (CVSS 6.3): shescape is a simple shell escape package for JavaScript. In shescape before version 1.1.3, anyone using _Shescape_ to…
- CVE-2022-24725 — Medium (CVSS 6.2): 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…
- CVE-2022-36064 — Medium (CVSS 5.9): Shescape is a shell escape package for JavaScript. An Inefficient Regular Expression Complexity vulnerability impacts…
All CVEs affecting Shescape Project Shescape →
Other CWE-150 vulnerabilities
- CVE-2022-30123 — Critical (CVSS 10.0): A sequence injection vulnerability exists in Rack <2.0.9.1, <2.1.4.1 and <2.2.3.1 which could allow is a possible shell…
- CVE-2020-6932 — Critical (CVSS 10.0): An information disclosure and remote code execution vulnerability in the slinger web server of the BlackBerry QNX…
- CVE-2025-47284 — Critical (CVSS 9.9): Gardener implements the automated management and operation of Kubernetes clusters as a service. A security…
- CVE-2023-26055 — Critical (CVSS 9.9): XWiki Commons are technical libraries common to several other top level XWiki projects. Starting in version…
- CVE-2026-25996 — Critical (CVSS 9.8): Inspektor Gadget is a set of tools and framework for data collection and system inspection on Kubernetes clusters and…
- CVE-2025-25286 — Critical (CVSS 9.8): Crayfish is a collection of Islandora 8 microservices, one of which, Homarus, provides FFmpeg as a microservice. Prior…