Security mailing lists by PureSourceCode

GHSA-5rqg-jm4f-cqx7

HIGH

Infinite loop causing Denial of Service in colors

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.

Published
10 Jan 2022
Last modified
10 Jan 2022
Weakness
CWE-835
Sources
OSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV npm colors >= 1.4.1, <= 1.4.2
OSV npm colors = 1.4.44-liberty-2

References

History

  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 10 Jan 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.