Vulnerability Details : CVE-2022-25901
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.
Vulnerability category: Denial of service
Products affected by CVE-2022-25901
- cpe:2.3:a:cookiejar_project:cookiejar:*:*:*:*:*:node.js:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-25901
0.44%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 75 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-25901
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
3.9
|
3.6
|
NIST | |
5.3
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
3.9
|
1.4
|
Snyk |
CWE ids for CVE-2022-25901
-
The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles.Assigned by: nvd@nist.gov (Primary)
References for CVE-2022-25901
-
https://github.com/bmeck/node-cookiejar/blob/master/cookiejar.js%23L73
Page not found · GitHub · GitHubBroken Link
-
https://github.com/bmeck/node-cookiejar/pull/39
fix: add a guard against maliciously-sized cookies by andyburke · Pull Request #39 · bmeck/node-cookiejar · GitHubPatch;Third Party Advisory
-
https://github.com/bmeck/node-cookiejar/pull/39/commits/eaa00021caf6ae09449dde826108153b578348e5
fix: add a guard against maliciously-sized cookies by andyburke · Pull Request #39 · bmeck/node-cookiejar · GitHubPatch;Third Party Advisory
-
https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3176681
Regular Expression Denial of Service (ReDoS) in org.webjars.npm:cookiejar | CVE-2022-25901 | SnykExploit;Third Party Advisory
-
https://security.snyk.io/vuln/SNYK-JS-COOKIEJAR-3149984
Regular Expression Denial of Service (ReDoS) in cookiejar | CVE-2022-25901 | SnykExploit;Third Party Advisory
Jump to