GHSA-65p8-3hm4-h9h8

Suggest an improvement
Source
https://github.com/advisories/GHSA-65p8-3hm4-h9h8
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/08/GHSA-65p8-3hm4-h9h8/GHSA-65p8-3hm4-h9h8.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-65p8-3hm4-h9h8
Published
2019-08-23T00:04:48Z
Modified
2021-08-17T21:23:49Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
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.

Recommendation

Update to version 0.1.6 or later.

Database specific
{
    "cwe_ids":  [
        "CWE-400"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2019-08-22T14:26:35Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

npm / rgb2hex

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
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"