Bug 1974848 (CVE-2021-29060)

Summary: CVE-2021-29060 nodejs-color-string: Regular expression denial of service when the application is provided and checks a crafted invalid HWB string
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: anpicker, aos-bugs, bdettelb, bmontgom, dblechte, dfediuck, eedri, eparis, erooth, gghezzo, gparvin, jburrell, jcantril, jokerman, jramanat, jweiser, jwendell, kaycoth, mgoldboi, michal.skrivanek, nstielau, rcernich, rfreiman, sbonazzo, sgratch, sherold, spasquie, sponnaga, stcannon, thee, tomckay, twalsh, yturgema
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: color-string 1.5.5 Doc Type: If docs needed, set a value
Doc Text:
A Regular Expression Denial of Service (ReDOS) vulnerability was found in Color-String, which occurs when the application is provided and checks a crafted invalid HWB string. The highest threat from this vulnerability is to system availability.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-28 08:56:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1976218, 1976220, 1976221, 1976860, 1976861    
Bug Blocks: 1974849    

Description Pedro Sampaio 2021-06-22 16:16:04 UTC
A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in Color-String version 1.5.4 and below which occurs when the application is provided and checks a crafted invalid HWB string.

References:

https://github.com/yetingli/SaveResults/blob/main/js/color-string.js
https://github.com/yetingli/PoCs/blob/main/CVE-2021-29060/Color-String.md
https://github.com/Qix-/color-string/commit/0789e21284c33d89ebc4ab4ca6f759b9375ac9d3
https://www.npmjs.com/package/color-string