CVE catalog

CVE-2021-23567

colors.js: CVE-2021-23567

[CVE catalog]

Severity
Low
Source
[NVD] · [CVE record]
EPSS
1.73% · Oct 25, 2026

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

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiancolors.jssid1.4.0-4not affected
Debiancolors.jsforky1.4.0-4not affected
Debiancolors.jstrixie1.4.0-4not affected
Debiancolors.jsbookworm1.4.0-4not affected

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiancolors.jssourcesidNot affectedunimportantNot reportedNot reported
Debiancolors.jssourceforkyNot affectedunimportantNot reportedNot reported
Debiancolors.jssourcetrixieNot affectedunimportantNot reportedNot reported
Debiancolors.jssourcebookwormNot affectedunimportantNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [node-colors]Not affected

    Source package: [colors.js]

    Details (2)
    • 1.4.0-4 · all · bookworm

      Not affected

      dsa · colors.js · debian · bookworm

    • 1.4.0-4 · all · bookworm

      Not affected

      dsa · colors.js · debian · bookworm

Observed:

References