EJS - Server Side Prototype Pollution gadgets to RCE
The EJS templating library trusts the prototype of the options object passed to it, so if an application lets an attacker pollute Object.prototype, EJS picks up attacker-controlled options. Setting the client and escapeFunction options causes attacker code to be placed into the compiled template function and evaluated, giving remote code execution.
Node.js third-party modules (EJS)