{ "schema_version": "1.4.0", "id": "GHSA-9cp3-fh5x-xfcj", "modified": "2023-03-31T15:44:11Z", "published": "2018-08-09T20:55:46Z", "aliases": [ "CVE-2017-16098" ], "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.", "severity": [ { "type": "CVSS_V3", "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H" } ], "affected": [ { "package": { "ecosystem": "npm", "name": "charset" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "0" }, { "fixed": "1.0.1" } ] } ] } ], "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" } ], "database_specific": { "cwe_ids": [ "CWE-400" ], "severity": "HIGH", "github_reviewed": true, "github_reviewed_at": "2020-06-16T21:28:14Z", "nvd_published_at": null } }