Some languages before 1.24.0 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.
{ "nvd_published_at": "2021-06-28T20:15:00Z", "github_reviewed_at": "2021-06-28T18:15:20Z", "severity": "HIGH", "github_reviewed": true, "cwe_ids": [ "CWE-400" ] }