Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. prismjs
  4. ›
  5. CVE-2021-32723

CVE-2021-32723: Uncontrolled Resource Consumption

June 28, 2021 (updated March 28, 2022)

Prism is a syntax highlighting library. Some languages is 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. 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.

References

  • nvd.nist.gov/vuln/detail/CVE-2021-32723

Code Behaviors & Features

Detect and mitigate CVE-2021-32723 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.24.0

Fixed versions

  • 1.24.0

Solution

Upgrade to version 1.24.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

npm/prismjs/CVE-2021-32723.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:58 +0000.