ejs v3.1.9 is vulnerable to server-side template injection. If the ejs file is controllable, template injection can be implemented through the configuration settings of the closeDelimiter parameter. NOTE: this is disputed by the vendor because the render function is not intended to be used with untrusted input.
Search vulnerabilities
CVE-2023-29827
CVSS 3.1 · 9.8 Critical
EPSS 5.6%
KEV · Not listed
Vendors
Products
CVE-2017-1000188
nodejs-ejs: Cross-site scripting via ejs.renderFile()
nodejs ejs version older than 2.5.5 is vulnerable to a Cross-site-scripting in the ejs.renderFile() resulting in code injection
CVSS 3.0 · 6.1 Medium
EPSS 1.2%
KEV · Not listed
Vendors
Products
CVE-2017-1000189
nodejs-ejs: Denial of Service via renderFile() by overriding localNames
nodejs ejs version older than 2.5.5 is vulnerable to a denial-of-service due to weak input validation in the ejs.renderFile()
CVSS 3.0 · 7.5 High
EPSS 2.3%
KEV · Not listed
Vendors
Products
CVE-2017-1000228
nodejs ejs versions older than 2.5.3 is vulnerable to remote code execution due to weak input validation in ejs.renderFile() function
CVSS 3.0 · 9.8 Critical
EPSS 6.4%
KEV · Not listed
Vendors
Products
CVE-2022-29078
ejs: server-side template injection in outputFunctionName
The ejs (aka Embedded JavaScript templates) package 3.1.6 for Node.js allows server-side template injection in settings[view options][outputFunctionName]. This is parsed as an internal option, and overwrites the outputFunctionName option with an arbitrary OS command (which is executed upon template compilation).
CVSS 3.1 · 9.8 Critical
EPSS 32.8%
KEV · Not listed
Vendors
Products
Page 1 of 1.