{"api_version":"1","generated_at":"2026-07-24T02:25:16+00:00","cve":"CVE-2021-23567","urls":{"html":"https://cve.report/CVE-2021-23567","api":"https://cve.report/api/cve/CVE-2021-23567.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-23567","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-23567"},"summary":{"title":"CVE-2021-23567","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","state":"PUBLIC","assigner":"report@snyk.io","published_at":"2022-01-14 20:15:00","updated_at":"2022-01-21 19:08:00"},"problem_types":["CWE-835"],"metrics":[],"references":[{"url":"https://github.com/Marak/colors.js/issues/285%23issuecomment-1008212640","name":"N/A","refsource":"CONFIRM","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":""},{"url":"https://snyk.io/vuln/SNYK-JS-COLORS-2331906","name":"N/A","refsource":"CONFIRM","tags":[],"title":"Denial of Service (DoS) in colors | CVE-2021-23567 | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/Marak/colors.js/commit/074a0f8ed0c31c35d13d28632bd8a049ff136fb6%23diff-92bbac9a308cd5fcf9db165841f2d90ce981baddcb2b1e26cfff170929af3bd1R18","name":"N/A","refsource":"CONFIRM","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":""},{"url":"https://github.com/Marak/colors.js/issues/285","name":"N/A","refsource":"CONFIRM","tags":[],"title":"Zalgo issue with `v1.4.44-liberty-2` release · Issue #285 · Marak/colors.js · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"503"},{"url":"https://snyk.io/blog/open-source-maintainer-pulls-the-plug-on-npm-packages-colors-and-faker-now-what/","name":"N/A","refsource":"CONFIRM","tags":[],"title":"Open source maintainer pulls the plug on npm packages colors and faker, now what? | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/Marak/colors.js/commit/074a0f8ed0c31c35d13d28632bd8a049ff136fb6#diff-92bbac9a308cd5fcf9db165841f2d90ce981baddcb2b1e26cfff170929af3bd1R18","name":"MISC:https://github.com/Marak/colors.js/commit/074a0f8ed0c31c35d13d28632bd8a049ff136fb6%23diff-92bbac9a308cd5fcf9db165841f2d90ce981baddcb2b1e26cfff170929af3bd1R18","refsource":"MITRE","tags":[],"title":"Adds new American flag module · Marak/colors.js@074a0f8 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"503"},{"url":"https://github.com/Marak/colors.js/issues/285#issuecomment-1008212640","name":"MISC:https://github.com/Marak/colors.js/issues/285%23issuecomment-1008212640","refsource":"MITRE","tags":[],"title":"Zalgo issue with `v1.4.44-liberty-2` release · Issue #285 · Marak/colors.js · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-23567","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23567","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Unknown","lang":""}],"nvd_cpes":[{"cve_year":"2021","cve_id":"23567","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"colors.js_project","cpe5":"colors.js","cpe6":"1.4.1","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"23567","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"colors.js_project","cpe5":"colors.js","cpe6":"1.4.44-liberty-2","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2022-01-14T20:00:07.870060Z","ID":"CVE-2021-23567","STATE":"PUBLIC","TITLE":"Denial of Service (DoS)"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"colors","version":{"version_data":[{"version_affected":">","version_value":"1.4.0"}]}}]},"vendor_name":"n/a"}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Denial of Service (DoS)"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://snyk.io/vuln/SNYK-JS-COLORS-2331906","name":"https://snyk.io/vuln/SNYK-JS-COLORS-2331906"},{"refsource":"MISC","url":"https://github.com/Marak/colors.js/commit/074a0f8ed0c31c35d13d28632bd8a049ff136fb6%23diff-92bbac9a308cd5fcf9db165841f2d90ce981baddcb2b1e26cfff170929af3bd1R18","name":"https://github.com/Marak/colors.js/commit/074a0f8ed0c31c35d13d28632bd8a049ff136fb6%23diff-92bbac9a308cd5fcf9db165841f2d90ce981baddcb2b1e26cfff170929af3bd1R18"},{"refsource":"MISC","url":"https://github.com/Marak/colors.js/issues/285","name":"https://github.com/Marak/colors.js/issues/285"},{"refsource":"MISC","url":"https://github.com/Marak/colors.js/issues/285%23issuecomment-1008212640","name":"https://github.com/Marak/colors.js/issues/285%23issuecomment-1008212640"},{"refsource":"MISC","url":"https://snyk.io/blog/open-source-maintainer-pulls-the-plug-on-npm-packages-colors-and-faker-now-what/","name":"https://snyk.io/blog/open-source-maintainer-pulls-the-plug-on-npm-packages-colors-and-faker-now-what/"}]},"description":{"description_data":[{"lang":"eng","value":"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"}]},"impact":{"cvss":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"}},"credit":[{"lang":"eng","value":"Unknown"}]},"nvd":{"publishedDate":"2022-01-14 20:15:00","lastModifiedDate":"2022-01-21 19:08:00","problem_types":["CWE-835"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:N/I:N/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"PARTIAL","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:colors.js_project:colors.js:1.4.44-liberty-2:*:*:*:*:node.js:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:colors.js_project:colors.js:1.4.1:*:*:*:*:node.js:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"23567","Ordinal":"198294","Title":"CVE-2021-23567","CVE":"CVE-2021-23567","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"23567","Ordinal":"1","NoteData":"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","Type":"Description","Title":null},{"CveYear":"2021","CveId":"23567","Ordinal":"2","NoteData":"2022-01-14","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"23567","Ordinal":"3","NoteData":"2022-01-14","Type":"Other","Title":"Modified"}]}}}