cookiejar Regular Expression Denial of Service via Cookie.parse function
- Severity:
- Medium
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
Related 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
You might also like:
- Tags:
- npm
- cookiejar
Anything's wrong? Let us know Last updated on February 13, 2025


