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.
:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.
CVE-2023-29827 - Medium Severity Vulnerability
Vulnerable Libraries - ejs-2.5.9.tgz, ejs-2.7.4.tgz
ejs-2.5.9.tgz
Embedded JavaScript templates
Library home page: https://registry.npmjs.org/ejs/-/ejs-2.5.9.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/webdriverio/node_modules/ejs/package.json
Dependency Hierarchy: - webdriverio-4.14.4.tgz (Root Library) - :x: **ejs-2.5.9.tgz** (Vulnerable Library)
ejs-2.7.4.tgz
Embedded JavaScript templates
Library home page: https://registry.npmjs.org/ejs/-/ejs-2.7.4.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/ejs/package.json
Dependency Hierarchy: - :x: **ejs-2.7.4.tgz** (Vulnerable Library)
Found in HEAD commit: 2e9d597fe70064b9c61d9203c8a93a380a667238
Found in base branch: master
Vulnerability Details
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.
Publish Date: 2023-05-04
URL: CVE-2023-29827
CVSS 3 Score Details (5.5)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Local - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High
For more information on CVSS3 Scores, click here.