Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. charset
  4. ›
  5. GMS-2017-197

GMS-2017-197: Regular Expression Denial of Service

September 8, 2017

charset 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 relatively low.

References

  • github.com/node-modules/charset/issues/10

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.0.1

Fixed versions

  • 1.0.1

Solution

Upgrade to charset version 1.0.1 or greater

Source file

npm/charset/GMS-2017-197.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:50 +0000.