Skip to content

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

HighCVSS 8.6 EPSS 0.68%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
npm shescape(npm) < 1.7.4 1.7.4 Fixed
shescape project shescape < 1.7.4 1.7.4 Fixed
ericcornelissen shescape = < 1.7.4 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
npm shescape(npm) < 1.7.4 1.7.4
ericcornelissen shescape = < 1.7.4 No fix listed
shescape project shescape < 1.7.4 1.7.4

References