{"id":"GHSA-65p8-3hm4-h9h8","aliases":["GHSA-65p8-3hm4-h9h8"],"related":[],"kind":"vulnerability","state":"published","title":"Denial of Service in rgb2hex","summary":"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.\n\n\n## Recommendation\n\nUpdate to version 0.1.6 or later.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.\n\n\n## Recommendation\n\nUpdate to version 0.1.6 or later.","format":"markdown","source":"ghsa"}],"published":"2019-08-23T00:04:48.000Z","modified":"2021-08-17T21:23:49.000Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.1.6"}],"ecosystem":"npm","package":"rgb2hex","purl":"pkg:npm/rgb2hex","source":"ghsa"}],"references":[{"url":"https://hackerone.com/reports/319629","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/christian-bromann/rgb2hex/blob/v0.1.0/index.js#L25","tags":["web"],"sources":["ghsa"]},{"url":"https://snyk.io/vuln/npm:rgb2hex:20180429","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/647","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-65p8-3hm4-h9h8","url":"https://github.com/advisories/GHSA-65p8-3hm4-h9h8","licence":"CC-BY-4.0","modified":"2021-08-17T21:23:49.000Z"}],"updatedAt":"2026-11-25T22:56:44.302Z"}