CVE-2021-23567

Summary

CVECVE-2021-23567
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-01-14 20:15:00 UTC
Updated2022-01-21 19:08:00 UTC
DescriptionThe 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

Risk And Classification

Problem Types: CWE-835

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Colors.js Project Colors.js 1.4.1 All All All
Application Colors.js Project Colors.js 1.4.44-liberty-2 All All All

References

ReferenceSourceLinkTags
N/A CONFIRM github.com
Denial of Service (DoS) in colors | CVE-2021-23567 | Snyk CONFIRM snyk.io
N/A CONFIRM github.com
Zalgo issue with `v1.4.44-liberty-2` release · Issue #285 · Marak/colors.js · GitHub CONFIRM github.com
Open source maintainer pulls the plug on npm packages colors and faker, now what? | Snyk CONFIRM snyk.io
Adds new American flag module · Marak/colors.js@074a0f8 · GitHub MITRE github.com
Zalgo issue with `v1.4.44-liberty-2` release · Issue #285 · Marak/colors.js · GitHub MITRE github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

LEGACY: Unknown

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report