{"id":"GHSA-65p8-3hm4-h9h8","summary":"Denial of Service in rgb2hex","details":"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.","modified":"2021-08-17T21:23:49Z","published":"2019-08-23T00:04:48Z","database_specific":{"nvd_published_at":null,"cwe_ids":["CWE-400"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2019-08-22T14:26:35Z"},"references":[{"type":"WEB","url":"https://hackerone.com/reports/319629"},{"type":"WEB","url":"https://github.com/christian-bromann/rgb2hex/blob/v0.1.0/index.js#L25"},{"type":"WEB","url":"https://snyk.io/vuln/npm:rgb2hex:20180429"},{"type":"WEB","url":"https://www.npmjs.com/advisories/647"}],"affected":[{"package":{"name":"rgb2hex","ecosystem":"npm","purl":"pkg:npm/rgb2hex"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.1.6"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/08/GHSA-65p8-3hm4-h9h8/GHSA-65p8-3hm4-h9h8.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}