← Database

CVE-2022-29078

CRITICAL CVSS: 9.8 Published: 2022-04-25 Modified: 2026-06-17

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 Platforms

Ejs Ejs

Weakness Type

CWE-94

References