CVE-2017-1000188 mde ejs vulnerable to XSS
Attackers can inject malicious scripts via the renderFile function in the EJS template engine, potentially leading to code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2017-1000188?
CVE-2017-1000188 is a medium-severity cross-site scripting vulnerability in n/a, published on 17 Nov 2017. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
nodejs ejs version older than 2.5.5 is vulnerable to a Cross-site-scripting in the ejs.renderFile() resulting in code injection
Weakness: CWE-79
Which versions are affected by CVE-2017-1000188?
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-1000188?
Upgrade ejs to 2.5.5 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2017-1000188 being exploited?
There is no known exploitation of CVE-2017-1000188 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2017-1000188, GHSA-hwcf-pp87-7x6p.