Vulnerability record · CVE-2022-29078 · published 25 April 2022
CVE-2022-29078: Ejs code injection vulnerability
Ejs · Ejs
The ejs (aka Embedded JavaScript templates) package 3.1.6 for Node.js allows server-side template injection in settings[view options][outputFunctionName]. This is parsed as an internal option, and overwrites the outputFunctionName option with an arbitrary OS command (which is executed upon template compilation).
Description
The ejs (aka Embedded JavaScript templates) package 3.1.6 for Node.js allows server-side template injection in settings[view options][outputFunctionName]. This is parsed as an internal option, and overwrites the outputFunctionName option with an arbitrary OS command (which is executed upon template compilation).
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://eslam.io/posts/ejs-server-side-template-injection-rce/ | ExploitPatchThird Party Advisory |
| https://github.com/mde/ejs/releases | Release NotesThird Party Advisory |
| https://security.netapp.com/advisory/ntap-20220804-0001/ | Third Party Advisory |
| https://eslam.io/posts/ejs-server-side-template-injection-rce/ | ExploitPatchThird Party Advisory |
| https://github.com/mde/ejs/releases | Release NotesThird Party Advisory |
| https://security.netapp.com/advisory/ntap-20220804-0001/ | Third Party Advisory |
Track CVE-2022-29078 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2022-29078), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.