Node.js Embedded JavaScript 3.1.6 is susceptible to server-side template injection via settings[view options][outputFunctionName], which is parsed as an internal option and overwrites the outputFunctionName option with an arbitrary OS command, which is then executed upon template compilation.
View the template here CVE-2022-29078.yaml
References:
https://github.com/miko550/CVE-2022-29078