CVE-2023-40185 in Shescape Project Shescape and 1 more product
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. ...
Affects 2 products from 2 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, can impact systems beyond the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Shescape Project | Shescape | < 1.7.4 |
Platforms listed by the source (the vulnerable product runs on these; they are not themselves vulnerable): Microsoft Windows
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2023-40185 |
|---|---|
| BreachSpider ID | BS-2023-GLOBAL-056393-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N |
| Published | 2023-08-23 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-150: CWE-150
Related attack patterns (CAPEC)
CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads via CWE-150
CAPEC-81 Web Server Logs Tampering via CWE-150
CAPEC-93 Log Injection-Tampering-Forging via CWE-150
CAPEC-134 Email Injection via CWE-150
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2023-40185 affects the Shescape library for JavaScript, impacting users on Windows in a threaded context. The vulnerability can lead to incorrect shell escaping, potentially bypassing security protections.
Attackers can exploit this vulnerability by crafting input that is misinterpreted by Shescape, leading to incorrect shell escaping. This can result in command injection or other shell-related vulnerabilities depending on the context in which Shescape is used.
Questions
What is CVE-2023-40185?
CVE-2023-40185 affects the Shescape library for JavaScript, impacting users on Windows in a threaded context. The vulnerability can lead to incorrect shell escaping, potentially bypassing security protections.
What is the CVSS score for CVE-2023-40185?
CVE-2023-40185 has CVSS 8.6 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N. EPSS: 0.7%.
Is CVE-2023-40185 actively exploited?
No confirmed active exploitation of CVE-2023-40185 as of 2026-09-25.
How do I remediate CVE-2023-40185?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2023-40185?
CVE-2023-40185 affects Shescape Project Shescape.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Shescape Project","product":"Shescape","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.