Description
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.
Remediation
References
https://nodesecurity.io/advisories/524
https://github.com/node-modules/charset/issues/10
Related Vulnerabilities
CVE-2017-7658 Vulnerability in maven package org.eclipse.jetty:jetty-server
CVE-2018-16469 Vulnerability in maven package org.webjars.npm:merge
CVE-2016-5725 Vulnerability in maven package com.jcraft:jsch
CVE-2022-41254 Vulnerability in maven package org.jenkins-ci.plugins:cons3rt
CVE-2023-37958 Vulnerability in maven package org.jenkins-ci.plugins:sumologic-publisher