What’s Vulnerable › Vulnerabilities

CVE-2022-29078: ejs template injection vulnerability

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).

Affected products

How to fix

Upgrade to a fixed version: Npm Ejs 3.1.7. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-29078 or the next vulnerability affects your stack