Vulnerability DatabaseGHSA-5rqg-jm4f-cqx7

GHSA-5rqg-jm4f-cqx7: 
JavaScript vulnerability analysis and mitigation

Overview

The colors.js library, used for including colored text in node.js consoles, experienced a critical security incident between January 7-9, 2022. Versions 1.4.1, 1.4.2, and 1.4.44-liberty-2 were published containing malicious code that introduced a Denial of Service vulnerability. This incident was tracked as GHSA-5rqg-jm4f-cqx7 and was rated as high severity (GitHub Advisory).

Technical details

The vulnerability was introduced through malicious code that created an infinite loop in the application. The affected versions (1.4.1, 1.4.2, and 1.4.44-liberty-2) contained code that would execute an infinite loop starting from number 666, causing unbound system resource consumption. The issue was classified as CWE-835 (Loop with Unreachable Exit Condition) (GitHub Advisory).

Impact

The malicious code resulted in two primary impacts: the continuous printing of randomized characters to the console and an infinite loop that led to unbound system resource consumption, effectively causing a Denial of Service condition for applications using the affected versions (GitHub Advisory).

Exploitability

The vulnerability was actively exploited as it was intentionally introduced into the package. The malicious code was directly embedded in the published versions, making exploitation automatic upon package installation and use (GitHub Advisory).

Mitigation and workarounds

Users of the affected versions are advised to downgrade to version 1.4.0, which does not contain the malicious code. No patches were released for the affected versions, making downgrade the only viable mitigation strategy (GitHub Advisory).

Additional resources


Source: This report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-j7r2-xppq-m353HIGH7.5
  • JavaScript logoJavaScript
  • websocket-driver
NoYesNov 28, 2026
GHSA-w7cm-vp9h-3qp4MEDIUM6.3
  • JavaScript logoJavaScript
  • axios
NoYesNov 28, 2026
GHSA-mw39-9473-h7mrMEDIUM6.3
  • JavaScript logoJavaScript
  • axios
NoYesNov 28, 2026
GHSA-v2qg-6486-r9rfLOW2.3
  • JavaScript logoJavaScript
  • axios
NoYesNov 28, 2026
GHSA-jm66-q5wm-qf72MEDIUMN/A
  • JavaScript logoJavaScript
  • orbitdb-relay
NoNoNov 28, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management