CVE-2021-32723

Published on: 06/28/2021 12:00:00 AM UTC

Last Modified on: 07/02/2021 03:57:00 PM UTC

CVE-2021-32723 - advisory for GHSA-gj77-59wh-66hg

Source: Mitre Source: Nist Print: PDF PDF
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H

Certain versions of Prism from Prismjs contain the following vulnerability:

Prism is a syntax highlighting library. Some languages before 1.24.0 are vulnerable to Regular Expression Denial of Service (ReDoS). When Prism is used to highlight untrusted (user-given) text, an attacker can craft a string that will take a very very long time to highlight. This problem has been fixed in Prism v1.24. As a workaround, do not use ASCIIDoc or ERB to highlight untrusted text. Other languages are not affected and can be used to highlight untrusted text.

  • CVE-2021-32723 has been assigned by URL Logo [email protected] to track the vulnerability - currently rated as MEDIUM severity.
  • Affected Vendor/Software: URL Logo PrismJS - prism version < 1.24

CVSS3 Score: 6.5 - MEDIUM

Attack
Vector
Attack
Complexity
Privileges
Required
User
Interaction
NETWORK LOW NONE REQUIRED
Scope Confidentiality
Impact
Integrity
Impact
Availability
Impact
UNCHANGED NONE NONE HIGH

CVSS2 Score: 4.3 - MEDIUM

Access
Vector
Access
Complexity
Authentication
NETWORK MEDIUM NONE
Confidentiality
Impact
Integrity
Impact
Availability
Impact
NONE NONE PARTIAL

CVE References

Description Tags Link
Tests: Exhaustive pattern tests by RunDevelopment · Pull Request #2688 · PrismJS/prism · GitHub github.com
text/html
URL Logo MISC github.com/PrismJS/prism/pull/2688
Updated refa + fixed 2 cases of exponential backtracking by RunDevelopment · Pull Request #2774 · PrismJS/prism · GitHub github.com
text/html
URL Logo MISC github.com/PrismJS/prism/pull/2774
Regular Expression Denial of Service (ReDoS) in Prism · Advisory · PrismJS/prism · GitHub github.com
text/html
URL Logo CONFIRM github.com/PrismJS/prism/security/advisories/GHSA-gj77-59wh-66hg

Known Affected Configurations (CPE V2.3)

Type Vendor Product Version Update Edition Language
ApplicationPrismjsPrismAllAllAllAll
  • cpe:2.3:a:prismjs:prism:*:*:*:*:*:node.js:*:*:

Social Mentions

Source Title Posted (UTC)
Twitter Icon @CVEreport CVE-2021-32723 : Prism is a syntax highlighting library. Some languages before 1.24.0 are vulnerable to Regular Exp… twitter.com/i/web/status/1… 2021-06-28 19:19:47
Reddit Logo Icon /r/netcve CVE-2021-32723 2021-06-28 19:41:16
© CVE.report 2021 Twitter Nitter Twitter Viewer |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report