VDB
Sign up
MEDIUM5.3

GHSA-qhv9-728r-6jqg

ReDoS via long string of semicolons in tough-cookie

Quick fix

GHSA-qhv9-728r-6jqg — tough-cookie: upgrade to the fixed version with the command below.

npm install tough-cookie@2.3.0

Details

Affected versions of `tough-cookie` may be vulnerable to regular expression denial of service when long strings of semicolons exist in the `Set-Cookie` header.

## Recommendation

Update to version 2.3.0 or later.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/tough-cookie
Introduced in: 0Fixed in: 2.3.0
Fixnpm install tough-cookie@2.3.0

References