Live threats

All CVEs / Charset Project

CVE-2017-16098Charset Project Charset

High 7.5 No auth needed

Priority
60
CVSS 3.0
7.5
EPSS
1.6%
probability of exploitation in 30 days · percentile 76
Auth required
No
Published
Jun 7, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

charset 1.0.0 and below are vulnerable to regular expression denial of service. Input of around 50k 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 80kb, so the impact of the ReDoS is relatively low.

Original NVD text.

What to do

  1. Apply the vendor's security update for Charset.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm charset < 1.0.1 1.0.1 npm install charset@1.0.1

Per OSV / GitHub Advisories (GHSA-9cp3-fh5x-xfcj). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
charset_projectcharset< 1.0.1

Official sources

References

Links published by the sources. Open them with care.