CVE-2021-23567 Denial of Service (DoS)
- Exploited in the wild
- Not known
- Fix
- None listed
What is CVE-2021-23567?
CVE-2021-23567 is a high-severity vulnerability in colors, published on 14 Jan 2022.
Official 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
Weakness: CWE-835
Which versions are affected by CVE-2021-23567?
2 open source packages ship an affected version, including colors. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
colors npm | From 1.4.1 | None |
colors npm | From 1.4.1 | None |
Products include Colors.js Project Colors.js.
How do I fix CVE-2021-23567?
No fix has been published for CVE-2021-23567 yet. Limit exposure of the affected software until one is available.
Is CVE-2021-23567 being exploited?
There is no known exploitation of CVE-2021-23567 in the wild and no public exploit code.
Sources
Also known as GHSA-gh88-3pxp-6fm8.