CVE-2021-23341: Regular Expression Denial of Service (ReDoS)

Published Feb 18, 2021
·
Updated

The package prismjs before 1.23.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the `prism-asciidoc`, `prism-rest`, `prism-tap` and `prism-eiffel` components.

Affected Software

2 affected componentsFixes available
npm/prismjs<1.23.0
1.23.0
PrismJS Prism Node.js<1.23.0

Event History

Feb 18, 2021
CVE Published
via MITRE·04:00 PM
Data Sourced
via MITRE·04:00 PM
DescriptionSeverityWeakness
Mar 1, 2021
Advisory Published
07:52 PM
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-23341?

CVE-2021-23341 is a vulnerability in the package prismjs before version 1.23.0 that allows Regular Expression Denial of Service (ReDoS) attacks.

2

What is Regular Expression Denial of Service (ReDoS)?

Regular Expression Denial of Service (ReDoS) is a type of vulnerability where a maliciously crafted input can cause a regular expression to consume significant amount of time, leading to denial of service.

3

How does CVE-2021-23341 affect prismjs?

CVE-2021-23341 affects prismjs before version 1.23.0, specifically impacting the `prism-asciidoc`, `prism-rest`, `prism-tap`, and `prism-eiffel` components.

4

What is the severity rating of CVE-2021-23341?

CVE-2021-23341 has a severity rating of 7.5 (high).

5

How can I fix the vulnerability CVE-2021-23341?

To fix the vulnerability CVE-2021-23341, update the prismjs package to version 1.23.0 or later.

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