CVE-2021-23341
JavaScript vulnerability analysis and mitigation

Overview

The vulnerability CVE-2021-23341 affects PrismJS, a lightweight syntax highlighting library, versions before 1.23.0. This vulnerability was discovered and disclosed on February 18, 2021. The issue is identified as a Regular Expression Denial of Service (ReDoS) vulnerability that affects multiple components including prism-asciidoc, prism-rest, prism-tap, and prism-eiffel (NVD, Snyk).

Technical details

The vulnerability is caused by improper regular expression patterns in multiple components that can lead to catastrophic backtracking. The affected components contain vulnerable regex patterns that can be exploited through specially crafted input strings. The vulnerability has a CVSS v3.1 base score of 7.5 (High), with attack vector being Network, attack complexity Low, and requiring no privileges or user interaction. The scope is unchanged, with no impact on confidentiality or integrity, but high impact on availability (Ubuntu).

Impact

When exploited, this vulnerability can cause the service to excessively consume CPU resources, resulting in a Denial of Service condition. The attack can lead to a total loss of availability, where the system becomes unresponsive while processing the malicious input. This impact is particularly significant as it can affect the entire system's performance and availability (Snyk).

Exploitability

The vulnerability is exploitable through specially crafted input strings that trigger catastrophic backtracking in the regular expressions. A proof-of-concept exists demonstrating how the vulnerability can be exploited, and the attack can be executed remotely without requiring any special privileges or user interaction (GitHub Issue).

Mitigation and workarounds

The vulnerability was fixed in PrismJS version 1.23.0. Users are recommended to upgrade to this version or later to mitigate the vulnerability. The fix involved modifying the regular expression patterns in the affected components to prevent catastrophic backtracking (GitHub PR).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-73421CRITICAL9.1
  • JavaScript logoJavaScript
  • next-auth
NoYesAug 13, 2026
CVE-2026-73420CRITICAL9.1
  • JavaScript logoJavaScript
  • next-auth
NoYesAug 13, 2026
CVE-2026-73305HIGH8.8
  • JavaScript logoJavaScript
  • @budibase/server
NoNoAug 13, 2026
CVE-2026-73408HIGH7.6
  • JavaScript logoJavaScript
  • @budibase/server
NoNoAug 13, 2026
CVE-2026-73428MEDIUM4.6
  • JavaScript logoJavaScript
  • action_text-trix
NoYesAug 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management