CVE-2022-29078

Severity CVSS v4.0:
Pending analysis
Type:
CWE-94 Code Injection
Publication date:
25/04/2022
Last modified:
08/08/2023

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

Vulnerable products and versions

CPE From Up to
cpe:2.3:a:ejs:ejs:3.1.6:*:*:*:*:node.js:*:*