GHSA-phwq-j96m-2c2qCriticalCVSS 9.8

ejs template injection vulnerability

Published
April 26, 2022
Last Modified
January 30, 2023

🔗 CVE IDs covered (1)

📋 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 products1

  • npm/ejs:< 3.1.7

🔗 References (6)