Description
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.
Recommendation
Update the prismjs package to the latest compatible version. Followings are version details:
- Affected version(s): < 1.25.0
- Patched version(s): 1.25.0
References
Could your website be exposed too?
SmartScanner can check your website for prismjs Regular Expression Denial of Service vulnerability and gives you actionable findings to investigate.
Start a free scanRelated Issues
- Regular Expression Denial of Service (ReDoS) in Prism - CVE-2021-32723
- jspdf vulnerable to Regular Expression Denial of Service (ReDoS) - CVE-2021-23353
- Regular Expression Denial of Service in postcss - CVE-2021-23382
- Regular Expression Denial of Service in jquery-validation - CVE-2021-21252


