CVE-2021-3801 Inefficient Regular Expression Complexity in prismjs/prism
Attackers can cause denial of service in applications using Prism.js by submitting input that triggers inefficient regular expression complexity.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-3801?
CVE-2021-3801 is a high-severity denial of service vulnerability in prismjs/prism, published on 15 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
prism is vulnerable to Inefficient Regular Expression Complexity
Weakness: CWE-1333
Which versions are affected by CVE-2021-3801?
2 open source packages ship an affected version, including prismjs. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
prismjs npm | All versions | 1.25.0 |
prismjs npm | All versions | 1.25.0 |
Products include Prismjs Prism.
How do I fix CVE-2021-3801?
Upgrade prismjs to 1.25.0 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2021-3801 being exploited?
There is no known exploitation of CVE-2021-3801 in the wild and no public exploit code.
Other vulnerabilities in prismjs/prism
Sources
Also known as DEBIAN-CVE-2021-3801, GHSA-hqhp-5p83-hx96, UBUNTU-CVE-2021-3801.