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-36182 Vulnerability in maven package com.fasterxml.jackson.core:jackson-databind
CVE-2022-24823 Vulnerability in maven package io.netty:netty-codec-http
CVE-2020-28449 Vulnerability in npm package decal
CVE-2019-10768 Vulnerability in maven package org.webjars.bowergithub.angular:angular
CVE-2019-10352 Vulnerability in maven package org.jenkins-ci.main:jenkins-core