7.5
CWE
1333 400
Advisory Published
CVE Published
Updated

CVE-2021-3801: Inefficient Regular Expression Complexity in prismjs/prism

First published: Sat Sep 11 2021(Updated: )

Insufficient Regular Expression Complexity in prismjs leads to a Regular Expression Denial of Service (ReDoS) attack. An unauthenticated attacker can exploit this flaw to cause an application to consume an excess amount of CPU by providing a crafted HTML comment as input. This can result in a denial of service attack.

Credit: security@huntr.dev

Affected SoftwareAffected VersionHow to fix
Prismjs Prism<1.25.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is CVE-2021-3801?

    CVE-2021-3801 is a vulnerability in prismjs that allows an unauthenticated attacker to cause a denial of service (DoS) attack by exploiting insufficient regular expression complexity.

  • How does CVE-2021-3801 work?

    CVE-2021-3801 works by allowing an attacker to provide a crafted HTML comment as input, causing an application to consume excessive amounts of CPU resources.

  • What is the severity of CVE-2021-3801?

    The severity of CVE-2021-3801 is rated as high, with a CVSS score of 6.5.

  • What is the affected software of CVE-2021-3801?

    The affected software of CVE-2021-3801 includes Prismjs versions up to exclusive 1.25.0 and Node.js version in the CPE 'cpe:2.3:a:prismjs:prism:*:*:*:*:*:node.js:*:*' up to exclusive 1.25.0.

  • How can CVE-2021-3801 be remediated?

    To remediate CVE-2021-3801, it is recommended to update Prismjs to version 1.25.0 or higher.

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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203