Debian Security Tracker
DEBIAN-CVE-2022-29078
Details
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).
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Debian:12 | node-ejs | All versions before 3.1.7-1 (fixed in 3.1.7-1) |
| Debian:13 | node-ejs | All versions before 3.1.7-1 (fixed in 3.1.7-1) |
| Debian:14 | node-ejs | All versions before 3.1.7-1 (fixed in 3.1.7-1) |