CVE-2021-23567
Last modified
CVE-2021-23567 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 1.73% chance of exploitation in the next 30 days.
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
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Colors.Js Project | Colors.Js | 1.4.1 |
| Colors.Js Project | Colors.Js | 1.4.44-liberty-2 |
References
- https://github.com/Marak/colors.js/issues/285Exploit, Issue Tracking, Third Party Advisory
- https://github.com/Marak/colors.js/issues/285%23issuecomment-1008212640Exploit, Issue Tracking, Third Party Advisory
- https://snyk.io/blog/open-source-maintainer-pulls-the-plug-on-npm-packages-colors-and-faker-now-what/Exploit, Mitigation, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-COLORS-2331906Exploit, Third Party Advisory
- https://github.com/Marak/colors.js/issues/285Exploit, Issue Tracking, Third Party Advisory
- https://github.com/Marak/colors.js/issues/285%23issuecomment-1008212640Exploit, Issue Tracking, Third Party Advisory
- https://snyk.io/blog/open-source-maintainer-pulls-the-plug-on-npm-packages-colors-and-faker-now-what/Exploit, Mitigation, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-COLORS-2331906Exploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-23567?
How severe is CVE-2021-23567?
How do I fix CVE-2021-23567?
Are you affected by CVE-2021-23567?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
