CVE-2022-25918
HIGH 7.5CVSS 3.1Inefficient Regular Expression Complexity in shescape
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.
- Published
- 27 Oct 2022
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-1333
- Also known as
- GHSA-cr84-xvw4-qx3c
- Sources
- NVDJSONOSV GHSA-cr84-xvw4-qx3cJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | shescape_project | shescapecpe:2.3:a:shescape_project:shescape:1.5.10:*:*:*:*:node.js:*:* |
= 1.5.10 | |
| NVD | shescape_project | shescapecpe:2.3:a:shescape_project:shescape:1.6.0:*:*:*:*:node.js:*:* |
= 1.6.0 | |
| OSV | npm | shescape | >= 1.5.10, < 1.6.1 | 1.6.1 |
References
- https://github.com/ericcornelissen/shescape/blob/main/src/unix.js%23L52 · Broken Link, WEB
- https://github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65741643358f9 · Patch, Third Party Advisory, WEB
- https://github.com/ericcornelissen/shescape/releases/tag/v1.6.1 · Release Notes, Third Party Advisory, WEB
- https://security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108 · Exploit, Patch, Third Party Advisory, WEB
- https://github.com/ericcornelissen/shescape/security/advisories/GHSA-cr84-xvw4-qx3c · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-25918 · ADVISORY
- https://github.com/ericcornelissen/shescape · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 27 Oct 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 25 Oct 2022)