CVE-2022-25918Shescape Project Shescape
High 7.5 No auth needed
Follow: this CVE · Shescape Project · Shescape Project Shescape We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.6% probability of exploitation in 30 days · percentile 77
- Auth required
- No
- Published
- Oct 27, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1333
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Shescape.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | shescape |
≥ 1.5.10 < 1.6.1 |
1.6.1 |
npm install shescape@1.6.1 |
Per OSV / GitHub Advisories (GHSA-cr84-xvw4-qx3c). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| shescape_project | shescape | 1.5.10 |
| shescape_project | shescape | 1.6.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Broken Link
- github.com Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- security.snyk.io Exploit Patch Third Party Advisory