Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Shescape Project | Shescape | 1.5.10 |
Related Weaknesses (CWE)
References
- https://github.com/ericcornelissen/shescape/blob/main/src/unix.js%23L52Broken Link
- https://github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65PatchThird Party Advisory
- https://github.com/ericcornelissen/shescape/releases/tag/v1.6.1Release NotesThird Party Advisory
- https://security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108ExploitPatchThird Party Advisory
- https://github.com/ericcornelissen/shescape/blob/main/src/unix.js%23L52Broken Link
- https://github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65PatchThird Party Advisory
- https://github.com/ericcornelissen/shescape/releases/tag/v1.6.1Release NotesThird Party Advisory
- https://security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108ExploitPatchThird Party Advisory
FAQ
What is CVE-2022-25918?
CVE-2022-25918 is a vulnerability with a CVSS score of 5.3 (MEDIUM). 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 escapeAr...
How severe is CVE-2022-25918?
CVE-2022-25918 has been rated MEDIUM with a CVSS base score of 5.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2022-25918?
Check the references section above for vendor advisories and patch information. Affected products include: Shescape Project Shescape.