# CVE-2022-25918: Regular Expression Denial of Service (ReDoS)

- Severity: Medium 5.3 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.63%, higher than 76% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-10-25T22:27:32.000Z
- Modified: 2026-06-17T04:34:29.620Z
- Also known as: GHSA-cr84-xvw4-qx3c
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- shescape: from 1.5.10 before unspecified; from unspecified before 1.6.1
- shescape (npm): from 1.5.10 before 1.6.1
- shescape_project shescape: 1.5.10; 1.6.0

## Every score

- snyk: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108> (exploit, patch, third-party-advisory, web)
- <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://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)

## Sources

- CVE List: [CVE-2022-25918](https://www.cve.org/CVERecord?id=CVE-2022-25918), CVE Terms of Use, modified 2025-05-05
- GitHub Advisory Database: [GHSA-cr84-xvw4-qx3c](https://github.com/advisories/GHSA-cr84-xvw4-qx3c), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-25918](https://nvd.nist.gov/vuln/detail/CVE-2022-25918), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-25918 · Whole record: https://cve.day/CVE-2022-25918.json · Rebuilt by cve.day 2026-11-25T22:58:16.031Z
