Bug 2005445 (CVE-2021-3801) - CVE-2021-3801 nodejs-prismjs: ReDoS vulnerability
Summary: CVE-2021-3801 nodejs-prismjs: ReDoS vulnerability
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-3801
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2006816 2009830 2012293
Blocks: 2005446
TreeView+ depends on / blocked
 
Reported: 2021-09-17 16:46 UTC by Guilherme de Almeida Suckevicz
Modified: 2023-09-01 01:28 UTC (History)
27 users (show)

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.
Clone Of:
Environment:
Last Closed: 2021-12-01 17:51:34 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:4902 0 None None None 2021-12-01 17:24:12 UTC

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


Note You need to log in before you can comment on or make changes to this bug.