CVE-2022-25901
Cookiejar Project Cookiejar vulnerability
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
Cookiejar. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Cookiejar Project Cookiejar runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/bmeck/node-cookiejar/pull/39 · Patch
- github.com/bmeck/node-cookiejar/pull/39/commits/eaa00021caf6ae09449dde826108153b578348e5 · Patch
- security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3176681 · Exploit
- security.snyk.io/vuln/SNYK-JS-COOKIEJAR-3149984 · Exploit
- github.com/bmeck/node-cookiejar/blob/master/cookiejar.js%23L73
- lists.debian.org/debian-lts-announce/2023/09/msg00008.html
- nvd.nist.gov/vuln/detail/CVE-2022-25901
- github.com/bmeck/node-cookiejar/blob/master/cookiejar.js#23L73
- nvd.nist.gov/vuln/detail/CVE-2022-25901
- cve.org/CVERecord?id=CVE-2022-25901
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.