Description
All versions of rgb2hex
are vulnerable to Regular Expression Denial of Service (ReDoS) when an attacker can pass in a specially crafted invalid color value.
Recommendation
Update the rgb2hex
package to the latest compatible version. Followings are version details:
- Affected version(s): < 0.1.6
- Patched version(s): 0.1.6
References
Related Issues
- Denial of Service in jquery - CVE-2016-10707
- gifplayer XSS vulnerability - CVE-2025-31128
- rgb2hex vulnerable to inefficient regular expression complexity - CVE-2018-25061
- Prototype pollution in gsap - CVE-2020-28478
- Tags:
- npm
- rgb2hex
Anything's wrong? Let us know Last updated on January 09, 2023