CVE-2022-25901 json
cookiejar Regular Expression Denial of Service via Cookie.parse function
published 2023-01-18 3 y ago modified 2026-06-17 4 mo ago also GHSA-h452-7996-h45h , EUVD-2023-0478
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.6%
- EPSS 1.6% chance of exploitation in 30 days, percentile 75%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm cookiejar 2.1.4
- n/a cookiejar 2.1.4
- node-cookiejar Debian 14, Debian 13, Debian 12 2.1.4+~2.1.2-1
debian advisories DEBIAN-CVE-2022-25901
- github.com/bmeck/node-cookiejar#39 commit
- github.com/bmeck/node-cookiejar#39 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-25901 updated cvss 7.5
cookiejar: Regular Expression Denial of Service (ReDoS)
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/search-api-rhel8 Red Hat OpenShift GitOps openshift-gitops-1/argocd-rhel8affected: no fix available
-
Red Hat Enterprise Linux 6 firefox Red Hat Enterprise Linux 7 firefox, thunderbird Red Hat Enterprise Linux 8 firefox, mozjs60, thunderbird Red Hat Enterprise Linux 9 gjs, polkit, firefox, firefox-x11, polkit-libs, thunderbirdnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 19 mo ago
Exploit prediction
1.59% chance of exploitation in the next 30 days, higher than 75% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- security.snyk.io https://security.snyk.io/vuln/SNYK-JS-COOKIEJAR-3149984 referenced PoC, tagged "exploit" by a source, unverified
- security.snyk.io https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3176681 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P |
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | cookiejar | <2.1.4 |
2.1.4 |
| maven | org.webjars.npm:cookiejar | <=2.1.3 |
no fix listed |
Affected products
- n/a cookiejar
- n/a org.webjars.npm:cookiejar
Classification
- Weakness
-
- CWE-1333 Inefficient Regular Expression Complexity
References
-
github.com
/bmeck/node-cookiejar/pull/39
web, patch, third-party-advisory
-
github.com
/bmeck/node-cookiejar/pull/39/commits/eaa00021caf6ae09449dde826108153b578348e5
web, patch, third-party-advisory
-
security.snyk.io
/vuln/SNYK-JS-COOKIEJAR-3149984
web, exploit, third-party-advisory
-
security.snyk.io
/vuln/SNYK-JAVA-ORGWEBJARSNPM-3176681
web, exploit, third-party-advisory
-
github.com
/bmeck/node-cookiejar/blob/master/cookiejar.js%23L73
web, broken-link
-
lists.debian.org
/debian-lts-announce/2023/09/msg00008.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2022-25901
advisory
-
github.com
/bmeck/node-cookiejar
package
-
github.com
/bmeck/node-cookiejar/blob/master/cookiejar.js#23L73
web
Sources
- CVE List CVE-2022-25901
- GitHub Advisory GHSA-h452-7996-h45h
- NVD CVE-2022-25901
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.