ejs template injection vulnerability #67

Open
opened 2026-08-06 11:56:29 +00:00 by victor · 0 comments
Member

CVE-2022-29078
Severity: 9.8/ 10
Affected versions: < 3.1.7
Patched versions: 3.1.7

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).
References

https://nvd.nist.gov/vuln/detail/CVE-2022-29078
https://eslam.io/posts/ejs-server-side-template-injection-rce/
mde/ejs@15ee698
https://github.com/mde/ejs/releases
https://security.netapp.com/advisory/ntap-20220804-0001/
CVE-2022-29078 Severity: 9.8/ 10 Affected versions: < 3.1.7 Patched versions: 3.1.7 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). References https://nvd.nist.gov/vuln/detail/CVE-2022-29078 https://eslam.io/posts/ejs-server-side-template-injection-rce/ mde/ejs@15ee698 https://github.com/mde/ejs/releases https://security.netapp.com/advisory/ntap-20220804-0001/
victor added this to the v0.1.2 milestone 2026-08-06 11:56:29 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MinBZK/DAWO-NixOS#67
No description provided.