CVE-2022-29078: Ejs

Critical severity, CVSS 9.8. EPSS: 32.8% chance of exploitation in the next 30 days.

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

  • Ejs Ejs: version 3.1.6 only

Published 2022-04-25. Last modified 2026-06-17.