Bug 2006336 (CVE-2021-3803)

Summary: CVE-2021-3803 nodejs-nth-check: inefficient regular expression complexity
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: anpicker, aos-bugs, bmontgom, caswilli, eparis, fjansen, gparvin, jburrell, jramanat, jsmith.fedora, jwong, kaycoth, michal.skrivanek, mperina, nodejs-sig, nstielau, pahickey, psegedy, rcernich, rfreiman, sgratch, spasquie, sponnaga, stcannon, tcarlin, vmugicag
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nth-check 2.0.1 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in nth-check nodejs library where it could lead to consuming a big amount of resources when executing some checks. Attackers could take advantage of this by crafting an invalid CSS nth-checks causing a disruption or a denial of service (DoS).
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: 2006338, 2006337, 2009020, 2009021, 2013367, 2013368, 2013369, 2013370, 2013371, 2013372, 2013373, 2013374, 2015725, 2015726, 2015727    
Bug Blocks: 2006340    

Description Guilherme de Almeida Suckevicz 2021-09-21 13:58:27 UTC
nth-check is vulnerable to Inefficient Regular Expression Complexity

Reference:
https://huntr.dev/bounties/8cf8cc06-d2cf-4b4e-b42c-99fafb0b04d0

Upstream patch:
https://github.com/fb55/nth-check/commit/9894c1d2010870c351f66c6f6efcf656e26bb726

Comment 1 Guilherme de Almeida Suckevicz 2021-09-21 13:59:15 UTC
Created nodejs-nth-check tracking bugs for this issue:

Affects: epel-7 [bug 2006338]
Affects: fedora-33 [bug 2006337]