CVE-2021-32723: Regular Expression Denial of Service (ReDoS) in Prism

Published Jun 28, 2021
·
Updated

Prism is a syntax highlighting library. 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. This problem has been fixed in Prism v1.24. As a workaround, do not use ASCIIDoc or ERB to highlight untrusted text. Other languages are not affected and can be used to highlight untrusted text.

Affected Software

2 affected components
PrismJS Prism Node.js<1.24.0
Oracle Application Express<21.1.4

Event History

Jun 28, 2021
CVE Published
via MITRE·07:15 PM
Data Sourced
via MITRE·07:15 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-32723?

CVE-2021-32723 is a vulnerability in Prism, a syntax highlighting library, where some languages before version 1.24.0 are vulnerable to Regular Expression Denial of Service (ReDoS).

2

How does CVE-2021-32723 affect Prism?

CVE-2021-32723 affects Prism by allowing an attacker to craft a string that will cause a very long time to highlight when untrusted (user-given) text is used for highlighting.

3

What is the severity of CVE-2021-32723?

The severity of CVE-2021-32723 is high with a CVSS score of 6.5.

4

Which versions of Prism are affected by CVE-2021-32723?

Versions of Prism before 1.24.0 are affected by CVE-2021-32723.

5

How can I fix the CVE-2021-32723 vulnerability in Prism?

To fix the CVE-2021-32723 vulnerability in Prism, update to version 1.24.0 or newer.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203