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-2021-23444 Vulnerability in npm package jointjs
CVE-2023-37259 Vulnerability in npm package matrix-react-sdk
CVE-2018-3766 Vulnerability in npm package buttle
CVE-2022-45391 Vulnerability in maven package io.jenkins.plugins:cavisson-ns-nd-integration
CVE-2016-4436 Vulnerability in maven package org.apache.struts:struts2-rest-plugin