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
- html2pdf.js contains a cross-site scripting vulnerability - CVE-2026-22787
- Altcha Proof-of-Work obfuscation mode cryptanalytic break - CVE-2025-65849
- fastify-reply-from affected by bypass of reply forwarding - CVE-2025-66415
- Finance.js vulnerable to DoS via the seekZero() parameter - CVE-2025-56572
- Tags:
- npm
- prismjs
Anything's wrong? Let us know Last updated on January 29, 2023