CVE-2023-40185
Shescape Project Shescape ≤ 1.7.4
Raw vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:LCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2023-40185 is a medium-severity Improper Neutralization of Escape, Meta, or Control Sequences (CWE-150) vulnerability in Shescape Project Shescape. Its CVSS base score is 6.5 (Medium).
Operationally, exploitation aligns with the MITRE ATT&CK technique Right-to-Left Override (T1036.002); ranked in the top 47% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2023-2309
Vulnerability Data
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…
more
depending on the combination of expected and used shell. This bug has been patched in version 1.7.4.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
MITRE ATT&CK v20.0
CVEs Like This One
Affected Assets
Mitigating Controls
Control response
—
—
—
V1.2.10V1.3.12
Mitigating Controls (NIST CSF 2.0)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.
Secure SDLC practices directly require input neutralization and escaping to prevent this class of flaw.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
Security testing can detect the weakness but does not itself implement neutralization.
Secure coding standards require proper escaping and neutralization of control characters before downstream processing.
A.8.30 carries its effect through the secure-development practices its contract requires of the supplier (8.25 to 8.29), so it reduces ordinary software injection weaknesses in delivered code the way those practices do; CWE-150 is an implementation-level neutralization defect of the same family as CWE-134, which the same clause was graded `partial` against, and the clause's declared ceiling on this verb is `partial`.
A.8.8's reach is DISCLOSURE on third-party components, and CWE-150 is primarily a first-party code defect (the application fails to neutralize escape sequences before passing them downstream); A.8.8 finds it only where it surfaces as a published advisory in a third-party component, which is a minority of instances, mirroring the A.8.8 -> CWE-89 anchor.