{"id":"GHSA-9cp3-fh5x-xfcj","summary":"Regular Expression Denial of Service in charset","details":"Affected versions of `charset` are susceptible to a regular expression denial of service.\n\nThe 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.\n\n\nIf 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.\n\n\n## Recommendation\n\nUpdate to version 1.0.1 or later.","aliases":["CVE-2017-16098"],"modified":"2023-11-08T03:59:04.732980Z","published":"2018-08-09T20:55:46Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2020-06-16T21:28:14Z","nvd_published_at":null,"cwe_ids":["CWE-400"],"severity":"HIGH"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16098"},{"type":"WEB","url":"https://github.com/node-modules/charset/issues/10"},{"type":"WEB","url":"https://github.com/node-modules/charset/pull/11"},{"type":"WEB","url":"https://github.com/node-modules/charset/commit/effda0c48c51b47a47f4cad7db0c51ee7407cc1b"},{"type":"PACKAGE","url":"https://github.com/node-modules/charset"}],"affected":[{"package":{"name":"charset","ecosystem":"npm","purl":"pkg:npm/charset"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/08/GHSA-9cp3-fh5x-xfcj/GHSA-9cp3-fh5x-xfcj.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}