{"cve":"CVE-2021-23567","nvd":{"published":"2022-01-14T20:15:10.157","modified":"2026-06-17T03:38:49.937","status":"Modified","description":"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","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-835"],"references":["https://github.com/Marak/colors.js/commit/074a0f8ed0c31c35d13d28632bd8a049ff136fb6%23diff-92bbac9a308cd5fcf9db165841f2d90ce981baddcb2b1e26cfff170929af3bd1R18","https://github.com/Marak/colors.js/issues/285","https://github.com/Marak/colors.js/issues/285%23issuecomment-1008212640","https://snyk.io/blog/open-source-maintainer-pulls-the-plug-on-npm-packages-colors-and-faker-now-what/","https://snyk.io/vuln/SNYK-JS-COLORS-2331906"],"products":["colors.js_project:colors.js"],"source":"nvd","synced_at":"2026-10-19T21:27:20.926095847+00:00"},"epss":{"cve":"CVE-2021-23567","score":0.01733,"percentile":0.77642,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-gh88-3pxp-6fm8","url":"https://osv.dev/vulnerability/GHSA-gh88-3pxp-6fm8","summary":"Infinite Loop in colors.js","modified":"2026-03-13T21:56:25.303006Z","packages":[{"ecosystem":"npm","name":"colors","purl":"pkg:npm/colors","ranges":[">=1.4.1"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}