Regular expression denial of service (ReDoS) in shescape
Priority HIGH 72CWE-1333Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-1333.
Summary
The package shescape from 1.5.10 and before 1.6.1 are vulnerable to Regular Expression Denial of Service (ReDoS) via the escape function in index.js, due to the usage of insecure regex in the escapeArgBash function.
Why it matters now
Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01629 76th percentileScored 2026-11-07
Fix Fixed shescape: 1.6.1shescape (npm): 1.6.1
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | shescape | 1.5.10 and later; before 1.6.1 | 1.6.1 | Patch available | CNA |
| — | shescape (npm) | 1.5.10 to before 1.6.1 | 1.6.1 | Patch available | GHSA-cr84-xvw4-qx3c |
- shescape Vendor— Affected 1.5.10 and later; before 1.6.1 Fixed in 1.6.1 Patch available CNA
- shescape (npm) Vendor— Affected 1.5.10 to before 1.6.1 Fixed in 1.6.1 Patch available GHSA-cr84-xvw4-qx3c
CPE configurations NVD · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:shescape_project:shescape:1.5.10:*:*:*:*:node.js:*:* | 1.5.10 | Vulnerable | ericcornelissen |
| cpe:2.3:a:shescape_project:shescape:1.6.0:*:*:*:*:node.js:*:* | 1.6.0 | Vulnerable | ericcornelissen |
- cpe:2.3:a:shescape_project:shescape:1.5.10:*:*:*:*:node.js:*:* Versions 1.5.10 Vulnerable ·ericcornelissen
- cpe:2.3:a:shescape_project:shescape:1.6.0:*:*:*:*:node.js:*:* Versions 1.6.0 Vulnerable ·ericcornelissen
Remediation
- Fix · CNA shescape Fixed in 1.6.1
- Fix · GHSA-cr84-xvw4-qx3c shescape (npm) Fixed in 1.6.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-25918
- 2026-10-03 Alias added: GHSA-cr84-xvw4-qx3c
References
Advisory 2
More ericcornelissen Shescape vulnerabilities
- TI-2022-13220 Insufficient escaping of whitespace in shescape CVSS 3.1CRITICAL 9.8
- TI-2022-13219 Insufficient escaping of line feeds for CMD in shescape CVSS 3.1CRITICAL 9.8
- TI-2026-24632 Shescape escape() leaves bracket glob expansion active on Bash, BusyBox, and Dash CVSS 4.0MEDIUM 6.9
- TI-2022-16487 Shescape Inefficient Regular Expression Complexity vulnerability CVSS 3.1HIGH 7.5
- TI-2022-08540 Exposure of home directory through shescape on Unix with Bash CVSS 3.1MEDIUM 6.2
- TI-2023-21058 Shescape on Windows escaping may be bypassed in threaded context CVSS 3.1HIGH 8.6
Sources
- CVE-2022-25918 · CVE Program
- CVE-2022-25918 · NVD
- FIRST EPSS
- GHSA-cr84-xvw4-qx3c · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences