CVE-2023-29827
Ejs ≥ 3.1.9
Raw vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2023-29827 is a critical-severity Injection (CWE-74) vulnerability in Ejs. Its CVSS base score is 9.8 (Critical).
Operationally, ranked in the top 7% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
Deeper analysis AI-assisted summary
Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.
ejs version 3.1.9 contains a server-side template injection flaw tracked as CVE-2023-29827 and assigned CWE-74. The issue arises when an attacker can control the EJS template file and supply a malicious closeDelimiter setting, allowing arbitrary template directives to be processed during rendering. The vulnerability received a CVSS 3.1 base score of 9.8.
An unauthenticated remote attacker who can influence the template source can leverage the flaw to execute arbitrary code or access sensitive data on the server. Exploitation requires that the application passes attacker-controlled content to the EJS render function, which the vendor states is outside the intended use of the library.
Vendor documentation in the referenced GitHub SECURITY.md file and issue 720 explicitly classifies this class of input as out of scope, noting that the render API is not designed to accept untrusted templates and that applications must sanitize or restrict template sources themselves.
EPSS for the CVE rose from lower values to a peak of 0.8540 on 2026-02-03 before receding to the current score of 0.6627, indicating a period of increased exploitation interest after disclosure.
OWASP Top 10 for Web (2025)
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2023-33364
Vulnerability Data
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…
more
intended to be used with untrusted input.
- CWE(s)
Related Threats
CVEs Like This One
Affected Assets
Mitigating Controls
Likely Mitigating Controls
Our mappings. Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Developer assessments and testing (including injection-focused techniques) identify improper neutralization of special elements, and the verifiable flaw remediation corrects them pre-deployment.
Identifies indicators of injection attacks (command, SQL, LDAP, etc.) via anomaly and attack monitoring.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
Security testing in development catches injection vulnerabilities before release.
Monitoring activities can identify active injection attacks after they occur.
Secure coding standards require proper neutralization of special elements, directly addressing CWE-74.
Hardening callouts derived
DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.
- No fine-grained STIG row for CWE-74, a class-level weakness, and none of its children carries one either.