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).
{
"github_reviewed": true,
"cwe_ids": [
"CWE-74"
],
"github_reviewed_at": "2022-04-27T14:36:21Z",
"nvd_published_at": "2022-04-25T15:15:00Z",
"severity": "CRITICAL"
}