CVE-2022-25918: Inefficient Regular Expression Complexity
(updated )
The package shescape from 1.5.10 and before 1.6.1 is 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.
References
- github.com/advisories/GHSA-cr84-xvw4-qx3c
- github.com/ericcornelissen/shescape/blob/main/src/unix.js%23L52
- github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65741643358f9
- github.com/ericcornelissen/shescape/releases/tag/v1.6.1
- github.com/ericcornelissen/shescape/security/advisories/GHSA-cr84-xvw4-qx3c
- nvd.nist.gov/vuln/detail/CVE-2022-25918
- security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108
Detect and mitigate CVE-2022-25918 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →