Live threats

All CVEs / Ejs

CVE-2017-1000188Ejs

Medium 6.1 No auth needed

Priority
52
CVSS 3.0
6.1
EPSS
1.2%
probability of exploitation in 30 days · percentile 69
Auth required
No
Published
Nov 17, 2017
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

nodejs ejs version older than 2.5.5 is vulnerable to a Cross-site-scripting in the ejs.renderFile() resulting in code injection

Original NVD text.

What to do

  1. Apply the vendor's security update for Ejs.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm ejs < 2.5.5 2.5.5 npm install ejs@2.5.5

Per OSV / GitHub Advisories (GHSA-hwcf-pp87-7x6p). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
ejsejs< 2.5.5

Official sources

References

Links published by the sources. Open them with care.