Description
Versions of the package cookiejar before 2.1.4 are vulnerable to Regular Expression Denial of Service (ReDoS) via the Cookie.parse function and other aspects of the API, which use an insecure regular expression for parsing cookie values.
Recommendation
Update the cookiejar package to the latest compatible version. Followings are version details:
- Affected version(s): < 2.1.4
- Patched version(s): 2.1.4
References
Could your website be exposed too?
SmartScanner can check your website for cookiejar Regular Expression Denial of Service via Cookie.parse function and gives you actionable findings to investigate.
Start a free scanRelated Issues
- Axios: Regular Expression Denial of Service (ReDoS) via Cookie Name Injection - CVE-2026-44496
- steal vulnerable to Regular Expression Denial of Service via input variable - CVE-2022-37260
- steal vulnerable to Regular Expression Denial of Service via source and sourceWithComments - CVE-2022-37262
- Regular expression denial of service in devcert - CVE-2022-1929


