GHSA-5rqg-jm4f-cqx7 Infinite loop causing Denial of Service in colors

Not scored Published

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.

PackageAffectedFixed in
colors npmAll versionsNone
colors npmAll versionsNone
colors npmFrom 1.4.1 to 1.4.2None
colors npmFrom 1.4.1 to 1.4.2None

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.

Sources

Is GHSA-5rqg-jm4f-cqx7 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free