CVE-2022-29078

published 25 Apr 2022 · updated 3 Aug 2024

The ejs (aka Embedded JavaScript templates) package 3.1.6 for Node.js allows server-side template injection in settings[view…

6.5MediumEPSS 33%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 33%. No fixed version is recorded.

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

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-29078 severity on Zeptric[![CVE-2022-29078](https://zeptric.io/badge/cve/CVE-2022-29078.svg)](https://zeptric.io/cve/CVE-2022-29078)