CVE-2022-29078

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

Basic Information

CVE State
PUBLISHED
Reserved Date
April 12, 2022
Published Date
April 25, 2022
Last Updated
August 03, 2024
Vendor
fleegix
Product
ejs
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).
Tags
nodejs nuclei_scanner

CVSS Scores

CVSS v3.1

9.8 - CRITICAL

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS v2.0

7.5

Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P

EPSS Score

Score
93.46% (Percentile: 99.81%) as of 2025-05-31

Exploit Status

Exploited in the Wild
Yes (2025-05-03 00:00:00 UTC) Source

Known Exploited Vulnerability Information

Source Added Date
The Shadowserver (via CIRCL) 2025-05-03 00:00:00 UTC

Scanner Integrations

Potential Proof of Concepts

Warning: These PoCs have not been tested and could contain malware. Use at your own risk.

l0n3m4n/CVE-2022-29078

Type: github • Created: 2024-11-05 06:15:45 UTC • Stars: 2

Serverside Template Injection (SSTI) RCE - THM challenge "whiterose"

miko550/CVE-2022-29078

Type: github • Created: 2022-07-20 10:10:01 UTC • Stars: 7

vuln ejs 3.1.6 docker

Timeline

  • CVE ID Reserved

  • CVE Published to Public

  • Detected by Nuclei

  • Added to KEVIntel