CVE-2021-23392 Regular Expression Denial of Service (ReDoS)
Attackers can cause denial of service in applications using the locutus library via a crafted input to the gopher_parsedir function.
- 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-23392?
CVE-2021-23392 is a medium-severity denial of service vulnerability in locutus, published on 8 Jun 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The package locutus before 2.0.15 are vulnerable to Regular Expression Denial of Service (ReDoS) via the gopher_parsedir function.
Which versions are affected by CVE-2021-23392?
2 open source packages ship an affected version, including locutus. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
locutus npm | All versions | 2.0.15 |
locutus npm | All versions | 2.0.15 |
Products include Locutus Locutus.
How do I fix CVE-2021-23392?
Upgrade locutus to 2.0.15 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-23392 being exploited?
There is no known exploitation of CVE-2021-23392 in the wild and no public exploit code.
Other vulnerabilities in locutus
- CVE-2026-32304 Locutus: RCE via unsanitized input in create_function()
- CVE-2020-7719 Prototype Pollution
- CVE-2026-25521 Locutus is vulnerable to Prototype Pollution
- CVE-2026-29091 Locutus: Remote Code Execution (RCE) in locutus call_user_func_array due to Code Injection
- CVE-2026-33993 Locutus has Prototype Pollution via __proto__ Key Injection in unserialize()
Sources
Also known as GHSA-39q4-p535-c852, SNYK-JS-LOCUTUS-1090597.