GHSA-65p8-3hm4-h9h8
MEDIUM 6.5CVSS 3.1Denial of Service in rgb2hex
All versions of rgb2hex are vulnerable to Regular Expression Denial of Service (ReDoS) when an attacker can pass in a specially crafted invalid color value.
Recommendation
Update to version 0.1.6 or later.
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | rgb2hex | < 0.1.6 | 0.1.6 |
References
- https://hackerone.com/reports/319629 · WEB
- https://github.com/christian-bromann/rgb2hex/blob/v0.1.0/index.js#L25 · WEB
- https://snyk.io/vuln/npm:rgb2hex:20180429 · WEB
- https://www.npmjs.com/advisories/647 · WEB
History
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 23 Aug 2019)