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
Related Issues
- Regular Expression Denial of Service (ReDoS) in Prism - CVE-2021-32723
- Regular Expression Denial of Service (ReDoS) - ssri - CVE-2021-27290
- tarteaucitron.js has Regular Expression Denial of Service (ReDoS) vulnerability - CVE-2026-22809
- html-parse-stringify and html-parse-stringify2 vulnerable to Regular expression denial of service (ReDoS) - CVE-2021-23346
You might also like:
- Tags:
- npm
- prismjs
Anything's wrong? Let us know Last updated on January 29, 2023


