Vulnerability · Published Jan 18, 2023 · Assigned by snyk
CVE-2022-25901
Medium 5.3
In plain English
A medium-severity regular-expression denial of service in cookiejar. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.6% (higher than 76% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)1.6%top 24.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-cookiejar | 2.1.4+~2.1.2-1 | DEBIAN-CVE-2022-25901 |
| Debian:13 | node-cookiejar | 2.1.4+~2.1.2-1 | DEBIAN-CVE-2022-25901 |
| Debian:14 | node-cookiejar | 2.1.4+~2.1.2-1 | DEBIAN-CVE-2022-25901 |
| Maven | org.webjars.npm:cookiejar | no fix listed | GHSA-h452-7996-h45h |
| npm | cookiejar | 2.1.4 | GHSA-h452-7996-h45h |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | cookiejar | 0 – before 2.1.4 |
| n/a | org.webjars.npm:cookiejar | 0 – before * |
Weakness: CWE-1333 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P
References
- https://security.snyk.io/vuln/SNYK-JS-COOKIEJAR-3149984
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3176681
- https://github.com/bmeck/node-cookiejar/blob/master/cookiejar.js%23L73
- https://github.com/bmeck/node-cookiejar/pull/39
- https://github.com/bmeck/node-cookiejar/pull/39/commits/eaa00021caf6ae09449dde826108153b578348e5
- https://lists.debian.org/debian-lts-announce/2023/09/msg00008.html