CVE-2020-26311 GHSL-2020-312: Regular Expression Denial of Service (ReDoS) in useragent
Attackers can cause denial of service in applications using the useragent library by sending crafted user agent strings that trigger expensive regular expression processing.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-26311?
CVE-2020-26311 is a high-severity denial of service vulnerability in 3rd-Eden useragent, published on 26 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Useragent is a user agent parser for Node.js. All versions as of time of publication contain one or more regular expressions that are vulnerable to Regular Expression Denial of Service (ReDoS). As of time of publication, no patches are available.
Weakness: CWE-1333
Which versions are affected by CVE-2020-26311?
2 open source packages ship an affected version, including useragent. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
useragent npm | All versions to 2.3.0 | None |
useragent npm | All versions to 2.3.0 | None |
Products include Useragent Project Useragent.
How do I fix CVE-2020-26311?
No fix published yet.
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-2020-26311 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-26311 exists.
Other vulnerabilities in 3rd-Eden useragent
Sources
Also known as CLSA-2026-1772496673, CLSA-2026-1776731779, GHSA-mgfv-m47x-4wqp.