CVE-2022-36064

Shescape Inefficient Regular Expression Complexity vulnerability

HIGH
7.5
CVSS Score
Published: September 6, 2022 at 08:55 PM UTC
Updated: June 17, 2026 at 04:52 AM UTC
2 products affected across 2 vendorsShescapeProject Shescape

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
HIGH7.5
Exploit prediction
EPSS 1%
SSVC
PoC

Description

Shescape is a shell escape package for JavaScript. An Inefficient Regular Expression Complexity vulnerability impacts users that use Shescape to escape arguments for the Unix shells `Bash` and `Dash`, or any not-officially-supported Unix shell; and/or using the `escape` or `escapeAll` functions with the `interpolation` option set to `true`. An attacker can cause polynomial backtracking or quadratic runtime in terms of the input string length due to two Regular Expressions in Shescape that are vulnerable to Regular Expression Denial of Service (ReDoS). This bug has been patched in v1.5.10. For `Dash` only, this bug has been patched since v1.5.9. As a workaround, a maximum length can be enforced on input strings to Shescape to reduce the impact of the vulnerability. It is not recommended to try and detect vulnerable input strings, as the logic for this may end up being vulnerable to ReDoS itself.

Affected

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

1.5.1 ≤ v < 1.5.10
Affected range stops below 1.5.10, so it looks safe — our inference, not a vendor statement
v < 1.5.10
Affected range stops below 1.5.10, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (3)

x_refsource_MISCIssue TrackingPatchThird Party Advisory
https://github.com/ericcornelissen/shescape/pull/373
x_refsource_MISCRelease NotesThird Party Advisory
https://github.com/ericcornelissen/shescape/releases/tag/v1.5.10
x_refsource_CONFIRMExploitIssue TrackingMitigationThird Party Advisory
https://github.com/ericcornelissen/shescape/security/advisories/GHSA-gp75-h7j6-5pv3

SSVC — Action Prioritization

SSVCPoCNot 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
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-400CWE-1333

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