GHSA-5rqg-jm4f-cqx7 Infinite loop causing Denial of Service in colors
Malicious code in specific versions of the colors library causes an infinite loop, leading to denial of service via resource exhaustion.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is GHSA-5rqg-jm4f-cqx7?
GHSA-5rqg-jm4f-cqx7 is a denial of service vulnerability in colors, published on 10 Jan 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
colors is a library for including colored text in node.js consoles. Between 07 and 09 January 2022, colors versions 1.4.1, 1.4.2, and 1.4.44-liberty-2 were published including malicious code that caused a Denial of Service due to an infinite loop. Software dependent on these versions experienced the printing of randomized characters to console and an infinite loop resulting in unbound system resource consumption.
Users of colors relying on these specific versions should downgrade to version 1.4.0.
Which versions are affected by GHSA-5rqg-jm4f-cqx7?
4 open source packages ship an affected version, including colors.
| Package | Affected | Fixed in |
|---|---|---|
colors npm | All versions | None |
colors npm | All versions | None |
colors npm | From 1.4.1 to 1.4.2 | None |
colors npm | From 1.4.1 to 1.4.2 | None |
How do I fix GHSA-5rqg-jm4f-cqx7?
No fix has been published for GHSA-5rqg-jm4f-cqx7 yet. Limit exposure of the affected software until one is available.
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-5rqg-jm4f-cqx7 being exploited?
There is no known exploitation of GHSA-5rqg-jm4f-cqx7 in the wild and no public exploit code.