GitHub Advisoryadvisory · npm

GHSA-9cp3-fh5x-xfcj Regular Expression Denial of Service in charset

HIGH Published 2018-08-09 Modified 2023-03-31 Official page ↗
Aliases
CVE-2017-16098
Ecosystem
npm
Packages
charset
Severity
High
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-400
Reviewed
2020-06-16

Affected packages

• npm charset: < 1.0.1 → fixed in 1.0.1

Description

Affected versions of `charset` are susceptible to a regular expression denial of service. The amplification on this vulnerability is relatively low - it takes around 2 seconds for the engine to execute on a malicious input which is 50,000 characters in length. If node was compiled using the `-DHTTP_MAX_HEADER_SIZE` however, the impact of the vulnerability can be significant, as the primary limitation for the vulnerability is the default max HTTP header length in node. Recommendation Update to version 1.0.1 or later.

Related

Alias · CVE (1)

  • CVE-2017-16098 charset 1.0.0 and below are vulnerable to regular expression denial of service. vulnerability

Weakness · CWE (1)

  • CWE-400 Uncontrolled Resource Consumption weakness

References