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://github.com/node-modules/charset/issues/10
https://nodesecurity.io/advisories/524
Related Vulnerabilities
CVE-2021-23337 Vulnerability in maven package org.webjars.bower:lodash
CVE-2020-28458 Vulnerability in npm package datatables.net
CVE-2015-8103 Vulnerability in maven package org.jenkins-ci.main:jenkins-core
CVE-2022-40764 Vulnerability in npm package snyk-go-plugin
CVE-2023-3815 Vulnerability in maven package com.ruoyi:ruoyi