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).
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Link | Tags |
---|---|
https://github.com/mde/ejs/releases | third party advisory release notes |
https://eslam.io/posts/ejs-server-side-template-injection-rce/ | exploit third party advisory patch |
https://security.netapp.com/advisory/ntap-20220804-0001/ | third party advisory |