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.
View the template here CVE-2023-29827.yaml
References:
https://github.com/mde/ejs/issues/720