Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. tough-cookie
  4. ›
  5. GMS-2017-210

GMS-2017-210: Regular Expression Denial of Service

September 21, 2017

The tough-cookie module is vulnerable to regular expression denial of service. Input of around k characters is required for a slow down of around 2 seconds. Unless node was compiled using the -DHTTP_MAX_HEADER_SIZE= option the default header max length is kb so the impact of the ReDoS is limited to around seconds of blocking.

References

  • github.com/salesforce/tough-cookie/issues/92

Code Behaviors & Features

Detect and mitigate GMS-2017-210 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.3.3

Fixed versions

  • 2.3.3

Solution

Upgrade to version 2.3.3 or above.

Source file

npm/tough-cookie/GMS-2017-210.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:46 +0000.