{"id":"GHSA-65p8-3hm4-h9h8","aliases":[],"status":"published","title":"Denial of Service in rgb2hex","description":"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.","severity":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-400"],"published":"2019-08-23T00:04:48Z","modified":"2023-01-09T05:02:03Z","fixes":[{"ecosystem":"npm","package":"rgb2hex","fixed_in":["0.1.6"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"rgb2hex","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.6"}]}]},{"source":"osv","ecosystem":"npm","package":"rgb2hex","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.1.6"}]}]}],"references":[{"url":"https://hackerone.com/reports/319629","tags":["web"]},{"url":"https://github.com/christian-bromann/rgb2hex/blob/v0.1.0/index.js#L25","tags":["web"]},{"url":"https://www.npmjs.com/advisories/647","tags":["web"]},{"url":"https://snyk.io/vuln/npm:rgb2hex:20180429","tags":["web"]},{"url":"https://github.com/advisories/GHSA-65p8-3hm4-h9h8"}],"sources":{"ghsa":[{"id":"GHSA-65p8-3hm4-h9h8","title":"Denial of Service in rgb2hex","description":"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.","status":"published","published":"2019-08-23T00:04:48Z","modified":"2023-01-09T05:02:03Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:36:02.073372Z"}],"osv":[{"id":"GHSA-65p8-3hm4-h9h8","title":"Denial of Service in rgb2hex","description":"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.","status":"published","published":"2019-08-23T00:04:48Z","modified":"2021-08-17T21:23:49Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T15:46:39.266402Z"}]}}
