CVE-2023-29827: ejs - Server-Side Template Injection
- Cve: CVE-2023-29827
- Name: ejs - Server-Side Template Injection
- 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.
- Impact: Attackers can execute arbitrary server-side templates, potentially leading to remote code execution or data disclosure.
- Remediation: Update to the latest version of ejs or apply security patches that fix the template injection vulnerability.
- Vulnerability type: template_injection
- Vulnerability impact: information_disclosure
- Requirement type: user_interaction
- Requirements: Attacker needs control over the ejs file
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.05552
- Epss percentile: 0.92961
- Assignee: [email protected]
- Published at: 2023-05-04T14:15:11Z
- Age in days: 1300
- Modified at: 2026-06-17T05:50:55Z
- Patch available: yes
- Public exploits total: 1
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-29827
- Nvd status: analyzed
- Checked, none or zero: public exploits capped, rejected by nvd
Cwe
| Id | Name |
|---|---|
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component |
Known exploited entries
| List | Added date | Due date | Ransomware use |
|---|---|---|---|
| vulncheck | 2026-09-18 | — | no |
Nuclei templates
| Id | Url |
|---|---|
| CVE-2023-29827 | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-29827.yaml |
Hackerone
- Reports: 1
- Rank: 5211
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/mde/ejs/issues/720 | nvd | 2023-05-04 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/mde/ejs/issues/720 | nvd | Exploit, Issue Tracking, Patch |
| https://github.com/mde/ejs/blob/main/SECURITY.md#out-of-scope-vulnerabilities | nvd | Third Party Advisory |
| https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-29827.yaml | nuclei_template | Nuclei Template |
| https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2023-29827 | vulncheck | Vulncheck Reported Exploitation |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| ejs:ejs | >= 3.1.9 | no | nvd | /v1/products/ejs/ejs |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| mde/ejs | issues | yes | /v1/repositories/mde/ejs |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Known exploited by: vulncheck
- Vulncheck known exploited since: 2026-09-18
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2023-05-04
- Remote: yes
- Hackerone reports: 1
- Checked, none or zero: known exploited, exploitation seen, initial access, authentication required
- Not known: known exploited since, initial access since, exposed hosts