GHSA-5rqg-jm4f-cqx7
JSON

high

Infinite loop causing Denial of Service in colors

Severity
high rating by GitHub
Published
Last changed

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.

Affected

Product or packageVersionsReported by
colors (npm)from 1.4.1 up to 1.4.2, 1.4.44-liberty-2GitHub Advisory Database

Classification

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-5rqg-jm4f-cqx7 changed 2022-01-10CC-BY-4.0