Back
CVE-2022-25918
Regular Expression Denial of Service (ReDoS)
Medium5.3EPSS 1.6%
- Published
- Updated
- Reserved
- Assigned by
- snyk
Description
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| snykCNA (assigner) | 3.1 | Medium5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVDNVD · Modified | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 1.6% · top 24% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: yes · Technical impact: partial
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.3.
Weakness
- Regular Expression Denial of Service (ReDoS)
- CWE-1333 Inefficient Regular Expression Complexity (opens in a new tab)All about CWE-1333 and its CVEs
Affected products
shescape
- affected 1.5.10 – < unspecified
- affected unspecified – < 1.6.1
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmshescapeGHSA-cr84-xvw4-qx3c (opens in a new tab)
References (4)
- https://security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108 (opens in a new tab)x_transferred
- https://github.com/ericcornelissen/shescape/blob/main/src/unix.js%23L52 (opens in a new tab)x_transferred
- https://github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65741643358f9 (opens in a new tab)x_transferred
- https://github.com/ericcornelissen/shescape/releases/tag/v1.6.1 (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-cr84-xvw4-qx3c (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-25918)Record last updated .