Bug 1966225 (CVE-2021-33587)

Summary: CVE-2021-33587 nodejs-css-what: does not ensure that attribute parsing has linear time complexity relative to the size of the input
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: amackenz, amasferr, anpicker, aos-bugs, bmontgom, chazlett, dblechte, eedri, eparis, extras-orphan, gparvin, jburrell, jsmith.fedora, jweiser, jwendell, kaycoth, michal.skrivanek, mkudlej, nodejs-sig, nstielau, rcernich, rfreiman, sgratch, sherold, spasquie, sponnaga, stcannon, thee, tjochec, twalsh, vmugicag, yturgema
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: css-what 5.0.1 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in nodejs-css-what. The css-what package for Node.js does not ensure that attribute parsing has a Linear Time Complexity relative to the size of the input. The highest threat from this vulnerability is to system availability.
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 1968551, 1966226, 1967002, 1967003, 1967006, 1968544, 1968549, 1968550, 1968562, 1972808, 1972809, 1972810, 1972811, 1972812, 1972813, 1972814, 1972815    
Bug Blocks: 1966227, 1997390    

Description Guilherme de Almeida Suckevicz 2021-05-31 17:02:51 UTC
The css-what package before 5.0.1 for Node.js does not ensure that attribute parsing has Linear Time Complexity relative to the size of the input.

Reference:
https://github.com/fb55/css-what/releases/tag/v5.0.1

Comment 1 Guilherme de Almeida Suckevicz 2021-05-31 17:03:14 UTC
Created nodejs-css-what tracking bugs for this issue:

Affects: fedora-33 [bug 1966226]

Comment 2 Przemyslaw Roguski 2021-06-02 10:26:56 UTC
Upstream fix:
https://github.com/fb55/css-what/commit/4cdaacfd0d4b6fd00614be030da0dea6c2994655