node-modules/charset

node-modules/charset

Releases5
Frequency1 year 2 months
Last Release
Stars33
Get the content charset from header and html content-type.

CVE History

CVEPublishedCVSS v3CVSS v2
5 MEDIUM

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.