highNo CVE yet
GHSA-5rqg-jm4f-cqx7
Infinite loop causing Denial of Service in colors
Impact
colors is a library for including colored text in node.js consoles. Between 07 and 09 January 2022, colors versions 1.4.1, 1.4.2, and 1.4.44-liberty-2 were published including malicious code that caused a Denial of Service due to an infinite loop. Software dependent on these versions experienced the printing of randomized characters to console and an infinite loop resulting in unbound system resource consumption. Users of colors relying on these specific versions should downgrade to version 1.4.0.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | Colors | >= 1.4.1, <= 1.4.2 | none recorded |
| npm | Colors | = 1.4.44-liberty-2 | none recorded |
Weakness classification
References
- GitHub advisory
- https://github.com/advisories/GHSA-5rqg-jm4f-cqx7
- https://github.com/Marak/colors.js/commit/137c6dae3339e97f4bbc838c221803c363b0a9fd
- https://github.com/Marak/colors.js/commit/5d2d242f656103ac38086d6b26433a09f1c38c75
- https://github.com/Marak/colors.js/commit/6bc50e79eeaa1d87369bb3e7e608ebed18c5cf26