Bug 2005445 (CVE-2021-3801)

Summary: CVE-2021-3801 nodejs-prismjs: ReDoS vulnerability
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: amctagga, amuller, anharris, anpicker, aos-bugs, bmontgom, bniver, eparis, erooth, fjansen, flucifre, gmeno, hvyas, jburrell, jokerman, jwendell, mbenjamin, mhackett, nstielau, puebele, rcernich, sostapov, spasquie, sponnaga, twalsh, vereddy, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: prismjs 1.25.0 Doc Type: If docs needed, set a value
Doc Text:
Insufficient Regular Expression Complexity in prismjs leads to a Regular Expression Denial of Service (ReDoS) attack. An unauthenticated attacker can exploit this flaw to cause an application to consume an excess amount of CPU by providing a crafted HTML comment as input. This can result in a denial of service attack.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-01 17:51:34 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: 2006816, 2009830, 2012293    
Bug Blocks: 2005446    

Description Guilherme de Almeida Suckevicz 2021-09-17 16:46:36 UTC
prism is vulnerable to Inefficient Regular Expression Complexity.

Reference:
https://huntr.dev/bounties/8c16ab31-6eb6-46d1-b9a4-387222fe1b8a

Upstream patch:
https://github.com/prismjs/prism/commit/0ff371bb4775a131634f47d0fe85794c547232f9

Comment 8 errata-xmlrpc 2021-12-01 17:24:10 UTC
This issue has been addressed in the following products:

  RHACS-3.67-RHEL-8

Via RHSA-2021:4902 https://access.redhat.com/errata/RHSA-2021:4902

Comment 9 Product Security DevOps Team 2021-12-01 17:51:31 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-3801