NetSight
medium6.5

CVE-2021-3801

prismjs Regular Expression Denial of Service vulnerability

Impact

Prism is a syntax highlighting library. The prismjs package is vulnerable to ReDoS (regular expression denial of service). An attacker that is able to provide a crafted HTML comment as input may cause an application to consume an excessive amount of CPU.

Affected packages

EcosystemPackageAffectedFixed in
npmprismjs< 1.25.01.25.0

Affected products

VendorProductAffected versions
PrismjsPrism
before 1.25.0

Weakness classification

References