CVE-2017-16115 Regular Expression Denial of Service in timespan
Attackers can cause denial of service by sending large inputs to the timespan module, blocking the event loop.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2017-16115?
CVE-2017-16115 is a high-severity denial of service vulnerability in HackerOne timespan node module, published on 7 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The timespan module is vulnerable to regular expression denial of service. Given 50k characters of untrusted user input it will block the event loop for around 10 seconds.
Weakness: CWE-400
Which versions are affected by CVE-2017-16115?
2 open source packages ship an affected version, including timespan. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
timespan npm | All versions to 2.3.0 | None |
timespan npm | All versions to 2.3.0 | None |
Products include Timespan Project Timespan.
How do I fix CVE-2017-16115?
Upgrade to a fixed version.
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-2017-16115 being exploited?
There is no known exploitation of CVE-2017-16115 in the wild and no public exploit code.
Sources
Also known as CLSA-2026-1777336758, GHSA-f523-2f5j-gfcg.