Live threats

All CVEs / Colors.js Project

CVE-2021-23567Colors.js Project Colors.js

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.8%
probability of exploitation in 30 days · percentile 79
Auth required
No
Published
Jan 14, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-835
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

The package colors after 1.4.0 are vulnerable to Denial of Service (DoS) that was introduced through an infinite loop in the americanFlag module. Unfortunately this appears to have been a purposeful attempt by a maintainer of colors to make the package unusable, other maintainers' controls over this package appear to have been revoked in an attempt to prevent them from fixing the issue. Vulnerable Code js for (let i = 666; i < Infinity; i++;) { Alternative Remediation Suggested * Pin dependancy to 1.4.0

Original NVD text.

What to do

  1. Apply the vendor's security update for Colors.js.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm colors ≥ 1.4.1 no fixed version —

Per OSV / GitHub Advisories (GHSA-gh88-3pxp-6fm8). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
colors.js_projectcolors.js1.4.1
colors.js_projectcolors.js1.4.44-liberty-2

Official sources

References

Links published by the sources. Open them with care.

  • github.com Patch Third Party Advisory
  • github.com Exploit Issue Tracking Third Party Advisory
  • github.com Exploit Issue Tracking Third Party Advisory
  • snyk.io Exploit Mitigation Third Party Advisory
  • snyk.io Exploit Third Party Advisory