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.
02 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.
03 Exploitation and scoring
- Exploitation
- Public exploit code exists. CISA's assessment records a public proof of concept. That is not a report of exploitation in the wild.
- SSVC decision
- ExploitationpocPublic proof-of-concept exploit code exists. Not a report of exploitation in the wild.
- AutomatablenoAt least one step from reconnaissance to exploitation cannot be reliably automated.
- Technical ImpactpartialSuccessful exploitation gives limited control of the vulnerable component.
- EPSS probability
- 1.54% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 74.4% of scored records. A rank, not a probability.
- NVD base score
- 7.5 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Moderate. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2023-01-18 05:00Z3 YR AGO
- Last updated
- 2025-04-03 19:33Z1 YR AGO
- Reserved
- 2022-02-24
- Assigning CNA
- snyk
- Record state
- PUBLISHED
- Severity
- Medium (CVSS 5.3)
- CNA CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P
- Weaknesses
- CWE-1333Inefficient Regular Expression ComplexityBase
- Data version
- 5.1
- Document digest
- 9fb3d802e13554ddc3a3b00ec04af8d91ed73218f8cb2d6e9282f934ac640aff
05 Affected products
06 References
- security.snyk.iohttps://security.snyk.io/vuln/SNYK-JS-COOKIEJAR-3149984
- security.snyk.iohttps://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3176681
- github.comhttps://github.com/bmeck/node-cookiejar/blob/master/cookiejar.js%23L73
- github.comhttps://github.com/bmeck/node-cookiejar/pull/39
- github.comhttps://github.com/bmeck/node-cookiejar/pull/39/commits/eaa00021caf6ae09449dde826108153b578348e5
- lists.debian.orghttps://lists.debian.org/debian-lts-announce/2023/09/msg00008.html
07 Fixed in
Debian 12
- node-cookiejar Fixed in 2.1.4+~2.1.2-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- node-cookiejar Fixed in 2.1.4+~2.1.2-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- node-cookiejar Fixed in 2.1.4+~2.1.2-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.