VulnerabilityModified
CVE-2022-25918
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.
HIGH 7.5EPSS 1.33%
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (1.33%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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 3.1
- 7.5 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS
- 1.33% probability · 69th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-1333
- Affected
- shescape project/shescape
- Source
- report@snyk.io
References
- https://github.com/ericcornelissen/shescape/blob/main/src/unix.js%23L52Broken Link
- https://github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65741643358f9Patch, Third Party Advisory
- https://github.com/ericcornelissen/shescape/releases/tag/v1.6.1Release Notes, Third Party Advisory
- https://security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108Exploit, Patch, Third Party Advisory
- https://github.com/ericcornelissen/shescape/blob/main/src/unix.js%23L52Broken Link
- https://github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65741643358f9Patch, Third Party Advisory
- https://github.com/ericcornelissen/shescape/releases/tag/v1.6.1Release Notes, Third Party Advisory
- https://security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108Exploit, Patch, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.