Vulnerability · Published Sep 15, 2021 · Assigned by @huntrdev

CVE-2021-3801Inefficient Regular Expression Complexity in prismjs/prism

High 7.5

In plain English

A high-severity regular-expression denial of service in prismjs/prism from prismjs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 64% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

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

Official description

prism is vulnerable to Inefficient Regular Expression Complexity

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12node-prismjs1.25.0+dfsg-1DEBIAN-CVE-2021-3801
Debian:13node-prismjs1.25.0+dfsg-1DEBIAN-CVE-2021-3801
Debian:14node-prismjs1.25.0+dfsg-1DEBIAN-CVE-2021-3801
Ubuntu:22.04:LTSnode-prismjsno fix listedUBUNTU-CVE-2021-3801
Ubuntu:24.04:LTSnode-prismjsno fix listedUBUNTU-CVE-2021-3801
Ubuntu:25.10node-prismjsno fix listedUBUNTU-CVE-2021-3801
Ubuntu:26.04:LTSnode-prismjsno fix listedUBUNTU-CVE-2021-3801
Ubuntu:26.10node-prismjsno fix listedUBUNTU-CVE-2021-3801
npmprismjs1.25.0GHSA-hqhp-5p83-hx96

Affected products (as reported)

VendorProductVersions
prismjs prismjs/prism unspecified – through 1.24.1

Weakness: CWE-1333 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References