CVE-2022-25901
HIGH 7.5CVSS 3.1cookiejar Regular Expression Denial of Service via Cookie.parse function
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.
- Published
- 18 Jan 2023
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-1333
- Also known as
- GHSA-h452-7996-h45h
- Sources
- NVDJSONOSV GHSA-h452-7996-h45hJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | cookiejar_project | cookiejarcpe:2.3:a:cookiejar_project:cookiejar:*:*:*:*:*:node.js:*:* |
<= 2.1.3 | |
| OSV | npm | cookiejar | < 2.1.4 | 2.1.4 |
| OSV | Maven | org.webjars.npm:cookiejar | <= 2.1.3 |
References
- 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://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3176681 · Exploit, Third Party Advisory, WEB
- https://security.snyk.io/vuln/SNYK-JS-COOKIEJAR-3149984 · Exploit, Third Party Advisory, 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
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 18 Jan 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 Jan 2023)