CVE-2023-29827
Embedded JavaScript(EJS) 3.1.6 - Template Injection
Record summary
CVE-2023-29827 has a selected CVSS score of 9.8 (critical); EIP currently links 1 Nuclei template.
Description
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.
Exploitation context
Available material
- Nuclei templates
- 1
CISA SSVC decision
CISA Coordinator · SSVC 2.0.3 · Evaluated Jan 29, 2025 · Source: CVE List
Nuclei templates
1ProjectDiscoveryCRITICALEmbedded JavaScript(EJS) 3.1.6 - Template InjectionCVSS 9.8
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.
Impact
High impact as it enables remote code execution.
Remediation
Update EJS to the latest version to mitigate the vulnerability.
Source: ProjectDiscovery