CVE-2017-16098
HIGH 7.5CVSS 3.0Regular Expression Denial of Service in charset
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.
- Published
- 7 Jun 2018
- Last modified
- 17 Jun 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-400
- Also known as
- GHSA-9cp3-fh5x-xfcj
- Sources
- NVDJSONOSV GHSA-9cp3-fh5x-xfcjJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | charset_project | charsetcpe:2.3:a:charset_project:charset:*:*:*:*:*:node.js:*:* |
< 1.0.1 | 1.0.1 |
| OSV | npm | charset | < 1.0.1 | 1.0.1 |
References
- https://github.com/node-modules/charset/issues/10 · Exploit, Third Party Advisory, WEB
- https://nodesecurity.io/advisories/524 · Third Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-16098 · ADVISORY
- https://github.com/node-modules/charset/pull/11 · WEB
- https://github.com/node-modules/charset/commit/effda0c48c51b47a47f4cad7db0c51ee7407cc1b · WEB
- https://github.com/node-modules/charset · PACKAGE
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 7 Jun 2018)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 9 Aug 2018)