Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
CVE-2022-29078 Details
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).
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://eslam.io/posts/ejs-server-side-template-injection-rce/ | CVE | ExploitPatchThird Party Advisory |
| https://github.com/mde/ejs/releases | CVE | Release NotesThird Party Advisory |
| https://security.netapp.com/advisory/ntap-20220804-0001/ | CVE | Third Party Advisory |
| https://eslam.io/posts/ejs-server-side-template-injection-rce/ | [email protected] | ExploitPatchThird Party Advisory |
| https://github.com/mde/ejs/releases | [email protected] | Release NotesThird Party Advisory |
| https://security.netapp.com/advisory/ntap-20220804-0001/ | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| ejs ejs | 3.1.6 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Aug 8, 2023 | CWE Remap | [email protected] |
| Nov 9, 2022 | Modified Analysis | [email protected] |
| Aug 4, 2022 | CVE Modified | [email protected] |
| May 5, 2022 | Initial Analysis | [email protected] |