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).
Remediation
References
https://eslam.io/posts/ejs-server-side-template-injection-rce/
https://github.com/mde/ejs/releases
https://security.netapp.com/advisory/ntap-20220804-0001/
Related Vulnerabilities
CVE-2020-12648 Vulnerability in maven package org.webjars.bower:tinymce
CVE-2021-26296 Vulnerability in maven package org.apache.myfaces.core:myfaces-core-project
CVE-2017-16178 Vulnerability in npm package intsol-package
CVE-2016-10735 Vulnerability in maven package org.ow2.jonas:bootstrap
CVE-2022-28220 Vulnerability in maven package org.apache.james:james-server-protocols-imap4