Vulnerability · Published Feb 18, 2021 · Assigned by snyk

CVE-2021-23341Regular Expression Denial of Service (ReDoS)

High 7.5

In plain English

A high-severity security flaw in prismjs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.2% (higher than 88% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)3.2%top 11.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

The package prismjs before 1.23.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the prism-asciidoc, prism-rest, prism-tap and prism-eiffel components.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12node-prismjs1.23.0+dfsg-1DEBIAN-CVE-2021-23341
Debian:13node-prismjs1.23.0+dfsg-1DEBIAN-CVE-2021-23341
Debian:14node-prismjs1.23.0+dfsg-1DEBIAN-CVE-2021-23341
Ubuntu:22.04:LTSnode-prismjsno fix listedUBUNTU-CVE-2021-23341
Ubuntu:24.04:LTSnode-prismjsno fix listedUBUNTU-CVE-2021-23341
Ubuntu:25.10node-prismjsno fix listedUBUNTU-CVE-2021-23341
Ubuntu:26.04:LTSnode-prismjsno fix listedUBUNTU-CVE-2021-23341
Ubuntu:26.10node-prismjsno fix listedUBUNTU-CVE-2021-23341
npmprismjs1.23.0GHSA-h4hr-7fg3-h35w

Affected products (as reported)

VendorProductVersions
n/a prismjs unspecified – before 1.23.0

References