# CVE-2022-25901: cookiejar Regular Expression Denial of Service via Cookie.parse function

- 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/E:P`
- 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.65%, higher than 77% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2023-01-18T05:00:01.282Z
- Modified: 2026-06-17T04:34:28.183Z
- Also known as: GHSA-h452-7996-h45h
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: snyk

## Description

Versions of the package cookiejar before 2.1.4 are vulnerable to Regular Expression Denial of Service (ReDoS) via the Cookie.parse function, which uses an insecure regular expression.

(As written by CVE List.)

## Affected

- cookiejar: before 2.1.4
- org.webjars.npm:cookiejar: before *
- cookiejar (npm): before 2.1.4
- org.webjars.npm:cookiejar (Maven): up to 2.1.3
- cookiejar_project cookiejar: up to 2.1.3

## 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/E:P`
- GitHub: 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`
- 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-COOKIEJAR-3149984> (exploit, third-party-advisory, web)
- <https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3176681> (exploit, third-party-advisory, web)
- <https://github.com/bmeck/node-cookiejar/blob/master/cookiejar.js%23L73> (broken-link, web)
- <https://github.com/bmeck/node-cookiejar/pull/39> (patch, third-party-advisory, web)
- <https://github.com/bmeck/node-cookiejar/pull/39/commits/eaa00021caf6ae09449dde826108153b578348e5> (patch, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2023/09/msg00008.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25901> (advisory)
- <https://github.com/bmeck/node-cookiejar> (package)
- <https://github.com/bmeck/node-cookiejar/blob/master/cookiejar.js#23L73> (web)

## Sources

- CVE List: [CVE-2022-25901](https://www.cve.org/CVERecord?id=CVE-2022-25901), CVE Terms of Use, modified 2025-04-03
- GitHub Advisory Database: [GHSA-h452-7996-h45h](https://github.com/advisories/GHSA-h452-7996-h45h), CC-BY-4.0, modified 2025-02-13
- NVD: [CVE-2022-25901](https://nvd.nist.gov/vuln/detail/CVE-2022-25901), Public domain, modified 2026-06-17

---

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