CVE-2017-16136 method-override ReDoS when untrusted user input passed into X-HTTP-Method-Override header
Attackers can cause denial of service in applications using method-override by sending crafted X-HTTP-Method-Override headers.
- 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-16136?
CVE-2017-16136 is a high-severity denial of service vulnerability in HackerOne method-override 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
method-override is a module used by the Express.js framework to let you use HTTP verbs such as PUT or DELETE in places where the client doesn't support it. method-override is vulnerable to a regular expression denial of service vulnerability when specially crafted input is passed in to be parsed via the X-HTTP-Method-Override header.
Weakness: CWE-400
Which versions are affected by CVE-2017-16136?
4 open source packages ship an affected version, including method-override. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
method-override npm | From 1.0.2 | 2.3.10 |
method-override npm | From 1.0.2 | 2.3.10 |
method-override npm | From 2.0.0 | 2.3.10 |
method-override npm | From 2.0.0 | 2.3.10 |
Products include Expressjs Method-Override.
How do I fix CVE-2017-16136?
Upgrade method-override to 2.3.10 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-2017-16136 being exploited?
There is no known exploitation of CVE-2017-16136 in the wild and no public exploit code.
Sources
Also known as GHSA-qx2f-477c-35rq.