Vulnerability library
Security checkFebruary 13, 2025

cookiejar Regular Expression Denial of Service via Cookie.parse function

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmcookiejar

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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 scan

Related Issues

See something that needs correcting? Let us knowUpdated February 13, 2025