cookiejar: Regular Expression Denial of Service (ReDoS)
Published Jan 18, 2023
7.5
HIGHCVSS 3.1
EPSS 1.55%
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 products
- Vendor n/a Product Cookiejar Defaultn/a
- Version 0StatusaffectedConstraints<2.1.4
- Version
- Vendor n/a Product Org.webjars.npm:cookiejar Defaultn/a
- Version 0StatusaffectedConstraints<*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| n/a | Cookiejar | n/a |
| ||||||
| n/a | Org.webjars.npm:cookiejar | n/a |
|
- ≤ 2.1.3
No data.
Red Hat Advanced Cluster Management for Kubernetes 2
rhacm2/search-api-rhel8
Affected
Red Hat Enterprise Linux 6
firefox
Not affected
Red Hat Enterprise Linux 7
firefox
Not affected
Red Hat Enterprise Linux 7
thunderbird
Not affected
Red Hat Enterprise Linux 8
firefox
Not affected
Red Hat Enterprise Linux 8
firefox:flatpak/firefox
Not affected
Red Hat Enterprise Linux 8
mozjs60
Not affected
Red Hat Enterprise Linux 8
thunderbird
Not affected
Red Hat Enterprise Linux 8
thunderbird:flatpak/thunderbird
Not affected
Red Hat Enterprise Linux 9
firefox
Not affected
Red Hat Enterprise Linux 9
firefox:flatpak/firefox
Not affected
Red Hat Enterprise Linux 9
gjs
Not affected
Red Hat Enterprise Linux 9
polkit
Not affected
Red Hat Enterprise Linux 9
thunderbird
Not affected
Red Hat Enterprise Linux 9
thunderbird:flatpak/thunderbird
Not affected
Red Hat OpenShift GitOps
openshift-gitops-1/argocd-rhel8
Affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/search-api-rhel8 | Affected | n/a |
| Red Hat Enterprise Linux 6 | firefox | Not affected | n/a |
| Red Hat Enterprise Linux 7 | firefox | Not affected | n/a |
| Red Hat Enterprise Linux 7 | thunderbird | Not affected | n/a |
| Red Hat Enterprise Linux 8 | firefox | Not affected | n/a |
| Red Hat Enterprise Linux 8 | firefox:flatpak/firefox | Not affected | n/a |
| Red Hat Enterprise Linux 8 | mozjs60 | Not affected | n/a |
| Red Hat Enterprise Linux 8 | thunderbird | Not affected | n/a |
| Red Hat Enterprise Linux 8 | thunderbird:flatpak/thunderbird | Not affected | n/a |
| Red Hat Enterprise Linux 9 | firefox | Not affected | n/a |
| Red Hat Enterprise Linux 9 | firefox:flatpak/firefox | Not affected | n/a |
| Red Hat Enterprise Linux 9 | gjs | Not affected | n/a |
| Red Hat Enterprise Linux 9 | polkit | Not affected | n/a |
| Red Hat Enterprise Linux 9 | thunderbird | Not affected | n/a |
| Red Hat Enterprise Linux 9 | thunderbird:flatpak/thunderbird | Not affected | n/a |
| Red Hat OpenShift GitOps | openshift-gitops-1/argocd-rhel8 | Affected | n/a |
cookiejar
npm
Introduced 0 Fixed 2.1.4org.webjars.npm:cookiejar
Maven
Introduced 0 Fixed not fixed
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | cookiejar | 0 | 2.1.4 |
| Maven | org.webjars.npm:cookiejar | 0 | not fixed |
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
2 other sources (GHSA, CVE.org) ▾
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
PoCAutomatable
NoTechnical Impact
PartialDecision
n/aAssessed Apr 2, 2025 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2023–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (14 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.55% (0.01546) | 74.09th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.55% (0.01546) | 71.68th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.03% (0.00035) | 6.73th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.44% (0.00444) | 75.74th | v3 (v2023.03.01) |
| Jun 30, 2024 | 0.27% (0.00267) | 67.89th | v3 (v2023.03.01) |
| May 21, 2024 | 0.22% (0.00224) | 60.60th | v3 (v2023.03.01) |
| Apr 24, 2024 | 0.16% (0.00158) | 51.78th | v3 (v2023.03.01) |
| Feb 20, 2024 | 0.15% (0.00150) | 50.03th | v3 (v2023.03.01) |
| Jan 25, 2024 | 0.13% (0.00125) | 46.92th | v3 (v2023.03.01) |
| Dec 19, 2023 | 0.10% (0.00102) | 41.47th | v3 (v2023.03.01) |
| Sep 12, 2023 | 0.08% (0.00084) | 34.96th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.06% (0.00055) | 20.74th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.02% (0.01018) | 40.69th | v2 (v2022.01.01) |
| Jan 18, 2023 | 1.02% (0.01018) | 39.97th | v2 (v2022.01.01) |
References (12)
- https://access.redhat.com/security/cve/CVE-2022-25901 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2161901 Issue Tracking
- https://github.com/advisories/GHSA-h452-7996-h45h Advisory
- https://github.com/bmeck/node-cookiejar/blob/master/cookiejar.js#23L73
- https://github.com/bmeck/node-cookiejar/blob/master/cookiejar.js%23L73 Broken Link
- https://github.com/bmeck/node-cookiejar/pull/39 PatchThird Party Advisory
- https://github.com/bmeck/node-cookiejar/pull/39/commits/eaa00021caf6ae09449dde826108153b578348e5 PatchThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2023/09/msg00008.html
- https://nvd.nist.gov/vuln/detail/CVE-2022-25901
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3176681 ExploitThird Party Advisory
- https://security.snyk.io/vuln/SNYK-JS-COOKIEJAR-3149984 ExploitThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2022-25901
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2022-25901 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2161901 | Issue Tracking | |
| https://github.com/advisories/GHSA-h452-7996-h45h | Advisory | |
| https://github.com/bmeck/node-cookiejar/blob/master/cookiejar.js#23L73 | ||
| https://github.com/bmeck/node-cookiejar/blob/master/cookiejar.js%23L73 | Broken Link | |
| https://github.com/bmeck/node-cookiejar/pull/39 | PatchThird Party Advisory | |
| https://github.com/bmeck/node-cookiejar/pull/39/commits/eaa00021caf6ae09449dde826108153b578348e5 | PatchThird Party Advisory | |
| https://lists.debian.org/debian-lts-announce/2023/09/msg00008.html | ||
| https://nvd.nist.gov/vuln/detail/CVE-2022-25901 | ||
| https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3176681 | ExploitThird Party Advisory | |
| https://security.snyk.io/vuln/SNYK-JS-COOKIEJAR-3149984 | ExploitThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2022-25901 |
Change history (0)
No recorded changes yet.