.. / CVE-2023-29827

Exploit for Embedded JavaScript(EJS) 3.1.6 - Template Injection (CVE-2023-29827)

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.

Nuclei Template

View the template here CVE-2023-29827.yaml

Validate with Nuclei

echo "$URL" | nuclei -t ~/nuclei-templates/http/cves/2023/CVE-2023-29827.yaml
Copy

References:

https://github.com/mde/ejs/issues/720
https://nvd.nist.gov/vuln/detail/CVE-2023-29827
https://github.com/mde/ejs/blob/main/SECURITY.md#out-of-scope-vulnerabilities