SecurityContext

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

IdName
CWE-74Improper Neutralization of Special Elements in Output Used by a Downstream Component

Known exploited entries

ListAdded dateDue dateRansomware use
vulncheck2026-09-18—no

Nuclei templates

IdUrl
CVE-2023-29827https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-29827.yaml

Hackerone

  • Reports: 1
  • Rank: 5211

Public exploits

UrlSourceAdded date
https://github.com/mde/ejs/issues/720nvd2023-05-04

References

UrlSourceTags
https://github.com/mde/ejs/issues/720nvdExploit, Issue Tracking, Patch
https://github.com/mde/ejs/blob/main/SECURITY.md#out-of-scope-vulnerabilitiesnvdThird Party Advisory
https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-29827.yamlnuclei_templateNuclei Template
https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2023-29827vulncheckVulncheck Reported Exploitation

Products

ProductAffectedPlatform boundSourcesUrl
ejs:ejs>= 3.1.9nonvd/v1/products/ejs/ejs

Projects

RepositoryLink kindsIndexedUrl
mde/ejsissuesyes/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

Nuclei template