Live threats

All CVEs / Prismjs

CVE-2021-32723Prismjs Prism

Medium 6.5 No auth needed

Priority
54
CVSS 3.1
6.5
EPSS
1.4%
probability of exploitation in 30 days · percentile 73
Auth required
No
Published
Jun 28, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Prism.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm prismjs < 1.24.0 1.24.0 npm install prismjs@1.24.0

Per OSV / GitHub Advisories (GHSA-gj77-59wh-66hg). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
prismjsprism< 1.24.0
oracleapplication_express< 21.1.4

Official sources

References

Links published by the sources. Open them with care.