CVE-2017-1000189 ejs vulnerable to DoS due to weak input validation
Attackers can cause a denial of service in applications using the EJS library due to weak input validation in the renderFile 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-2017-1000189?
CVE-2017-1000189 is a high-severity denial of service vulnerability in n/a, published on 17 Nov 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
nodejs ejs version older than 2.5.5 is vulnerable to a denial-of-service due to weak input validation in the ejs.renderFile()
Weakness: CWE-20
Which versions are affected by CVE-2017-1000189?
2 open source packages ship an affected version, including ejs. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
ejs npm | All versions | 2.5.5 |
ejs npm | All versions | 2.5.5 |
Products include Ejs Ejs.
How do I fix CVE-2017-1000189?
Upgrade ejs to 2.5.5 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-1000189 being exploited?
There is no known exploitation of CVE-2017-1000189 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2017-1000189, GHSA-6x77-rpqf-j6mw.