CVE-2023-40185

Shescape on Windows escaping may be bypassed in threaded context

HIGH
8.6
CVSS Score
Published: August 23, 2023 at 08:20 PM UTC
Updated: June 17, 2026 at 06:16 AM UTC
2 products affected across 2 vendorsShescapeProject Shescape· also runs on 1 platform

Using shescape by ericcornelissen?

Get instant alerts when new vulnerabilities affect shescape - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.6
Exploit prediction
EPSS 0.7%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 1.7.4
Affected range stops below 1.7.4, so it looks safe — our inference, not a vendor statement
microsoft-windows (environment)
v < 1.7.4
Affected range stops below 1.7.4, so it looks safe — our inference, not a vendor statement

Runs on — not affected

The affected product only carries this flaw when running on these platforms. The platforms themselves are not vulnerable.

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-150

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card