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-2023-34455 Vulnerability in maven package org.xerial.snappy:snappy-java
CVE-2021-23352 Vulnerability in npm package madge
CVE-2021-30246 Vulnerability in maven package org.webjars.bower:jsrsasign
CVE-2018-3721 Vulnerability in npm package lodash.merge
CVE-2022-25927 Vulnerability in maven package org.webjars.npm:ua-parser-js