Live threats

All CVEs / Ejs

CVE-2017-1000228Ejs

Critical 9.8 No auth needed

Priority
74
CVSS 3.0
9.8
EPSS
6.4%
probability of exploitation in 30 days · percentile 94
Auth required
No
Published
Nov 17, 2017
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-20
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

nodejs ejs versions older than 2.5.3 is vulnerable to remote code execution due to weak input validation in ejs.renderFile() function

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-3w5v-p54c-f74x). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
ejsejs< 2.5.3

Official sources

References

Links published by the sources. Open them with care.