CVE-2020-26306 GHSL-2020-296: Regular Expression Denial of Service (ReDoS) in Knwl.js
Attackers can cause denial of service in applications using Knwl.js by submitting crafted text that triggers inefficient regular expression processing.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2020-26306?
CVE-2020-26306 is a high-severity denial of service vulnerability in benhmoore Knwl, published on 26 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Knwl.js is a Javascript library that parses through text for dates, times, phone numbers, emails, places, and more. Versions 1.0.2 and prior contain one or more regular expressions that are vulnerable to Regular Expression Denial of Service (ReDoS). As of time of publication, no known patches are available.
Weakness: CWE-1333
Which versions are affected by CVE-2020-26306?
2 open source packages ship an affected version, including knwl.js.
| Package | Affected | Fixed in |
|---|---|---|
knwl.js npm | All versions to 1.0.2 | None |
knwl.js npm | All versions to 1.0.2 | None |
How do I fix CVE-2020-26306?
No fix has been published for CVE-2020-26306 yet. Limit exposure of the affected software until one is available.
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-26306 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-26306 exists.
Sources
Also known as GHSA-68qg-g787-3rp5.