LiveActive security incident?Get immediate response
CVE Record

CVE-2021-32723: Regular Expression Denial of Service (ReDoS) in Prism

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.

HighCVSS 7.4Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

Prism before 1.24 can be slowed dramatically when it highlights specially crafted untrusted text. The impact is service availability, not data theft or tampering. The strongest concern is public-facing editors, previewers, documentation tools, or comment systems that syntax-highlight ASCIIDoc or ERB supplied by users.

Executive priority

Prioritize remediation for internet-facing platforms with user-generated previews or code/documentation editing. For sites using Prism only on trusted static content, urgency is lower, but dependency cleanup remains recommended because the affected version is old and patched.

Technical view

CVE-2021-32723 is a ReDoS issue in PrismJS prism versions before 1.24. Vulnerable ASCIIDoc and ERB language regexes can consume excessive processing time on crafted input. The CVSS vector indicates network reachability, low attack complexity, no privileges, required user interaction, changed scope, and high availability impact only.

Likely exposure

Exposure is likely where Prism <1.24 is bundled in web applications and used to highlight untrusted user-provided ASCIIDoc or ERB. Applications only highlighting trusted content, or using unaffected languages, have lower exposure based on the advisory.

Exploitation context

The bundle does not show CISA KEV listing or cited evidence of active exploitation. Exploitation requires Prism to process attacker-controlled text and likely requires a user or workflow to trigger highlighting. The expected result is resource exhaustion or page/service slowdown.

Researcher notes

Evidence supports a high availability risk, not confidentiality or integrity impact. The advisory names ASCIIDoc and ERB as affected and says other languages are not affected. The source bundle provides patch version and workaround, but no exploit proof, payload details, or active exploitation evidence.

Mitigation direction

  • Upgrade PrismJS prism to version 1.24.0 or later.
  • If upgrade is delayed, do not highlight untrusted ASCIIDoc or ERB.
  • Restrict untrusted highlighting to languages the advisory says are unaffected.
  • Rebuild and redeploy bundled frontend assets after updating Prism.
  • Check downstream vendor guidance for products that embed Prism.

Validation and detection

  • Inventory Prism versions in application dependencies and built assets.
  • Identify code paths that highlight user-provided or externally sourced text.
  • Confirm whether ASCIIDoc or ERB language components are enabled.
  • Verify deployed assets load Prism 1.24.0 or later.
  • Review monitoring for unexplained CPU spikes in highlighting workflows.
Prepared
Confidence
high
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-400: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-32723 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.4 (3.1)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
5Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.4CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H2.84Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.4High
CVSS 3.1 vector shape for CVE-2021-32723Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
PrismJSprism< 1.24Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-400 · source CWE mapping

Uncontrolled Resource Consumption

Uncontrolled Resource Consumption represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.