GHSA-65p8-3hm4-h9h8 Denial of Service in rgb2hex
Attackers can cause denial of service in applications using rgb2hex by submitting specially crafted invalid color values.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-65p8-3hm4-h9h8?
GHSA-65p8-3hm4-h9h8 is a denial of service vulnerability in rgb2hex, published on 23 Aug 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Recommendation
Update to version 0.1.6 or later.
Which versions are affected by GHSA-65p8-3hm4-h9h8?
2 open source packages ship an affected version, including rgb2hex.
| Package | Affected | Fixed in |
|---|---|---|
rgb2hex npm | All versions | 0.1.6 |
rgb2hex npm | All versions | 0.1.6 |
How do I fix GHSA-65p8-3hm4-h9h8?
Upgrade rgb2hex to 0.1.6 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is GHSA-65p8-3hm4-h9h8 being exploited?
There is no known exploitation of GHSA-65p8-3hm4-h9h8 in the wild and no public exploit code.