CVE-2022-29078Published Apr 25, 2022 · Apr 25Updated Oct 28
ejs template injection vulnerability
Critical9.8Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| ejs npm |
|
|
Original 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).
From the CVE record · mitre