CVE-2022-25901
published medium CVSS 3.1 · 5.3cookiejar: Regular Expression Denial of Service (ReDoS)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | cookiejar0 to < 2.1.4 | Affected | Not stated | snyk |
| n/a | — | org.webjars.npm:cookiejar0 and later | Affected | Not stated | snyk |
| Debian | buster | node-cookiejar | Advisory build | 2.0.1-1+deb10u1 | DLA-3561-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- snyk · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | cookiejar | 0 to < 2.1.4 (affected · semver) | snyk · cna |
| n/a | org.webjars.npm:cookiejar | 0 and later (affected · semver) | snyk · cna |
Weaknesses
1- CWE-1333 Regular Expression Denial of Service (ReDoS)
References
6- 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
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3176681
- https://security.snyk.io/vuln/SNYK-JS-COOKIEJAR-3149984
Provider assertions
3snyk · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 8530615896db86e84971631c68db1b3c1730ec7835b9c20b27b002f382312ecf
- Ingested
- 23 Sep 2026, 07:59:13 UTC
- Source record
- Official CVE record