Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTY1cDgtM2htNC1oOWg4
Denial 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.
Permalink: https://github.com/advisories/GHSA-65p8-3hm4-h9h8JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTY1cDgtM2htNC1oOWg4
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 5 years ago
Updated: almost 2 years ago
CVSS Score: 6.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Identifiers: GHSA-65p8-3hm4-h9h8
References:
- https://hackerone.com/reports/319629
- https://github.com/christian-bromann/rgb2hex/blob/v0.1.0/index.js#L25
- https://www.npmjs.com/advisories/647
- https://snyk.io/vuln/npm:rgb2hex:20180429
- https://github.com/advisories/GHSA-65p8-3hm4-h9h8
Blast Radius: 27.7
Affected Packages
npm:rgb2hex
Dependent packages: 41Dependent repositories: 18,179
Downloads: 4,074,603 last month
Affected Version Ranges: < 0.1.6
Fixed in: 0.1.6
All affected versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5
All unaffected versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.1.10, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5