Regular Expression Denial of Serviceprismjs
prismjs before 1.24.0 some languages are vulnerable to Regular Expression Denial of Service (ReDoS).
When Prism is used to highlight untrusted (user-given) text, an attacker can craft a string that will take a very very long time to highlight. Do not use the following languages to highlight untrusted text.
Other languages are not affected and can be used to highlight untrusted text.
This problem has been fixed in Prism v1.24.
Upgrade to version 1.24.0 or later
publishedAdvisory PublishedJun 28th, 2021
reportedReported by AnonymousJun 28th, 2021