KEVIntel
9.8
CVSS
Critical

CVE-2022-29078

PUBLISHED

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

Exploited in the wild PoC available Remote Low complexity No user interaction
Vendor
mde
Product
ejs
Published
Apr 25, 2022
EPSS
93.5% · 100% pctl

Automate this intelligence with the Pro API

Everything on this page — CVSS, EPSS, exploit status, PoCs, scanner integrations, mentions, tags, and immediate honeypot sensor data — is available programmatically for VM, SOC, and CTI workflows.

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

nodejs nuclei_scanner

Weaknesses (CWE)

  • Improper Control of Generation of Code ('Code Injection')

CVSS scores

CVSS v3.1 9.8 Critical

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

CVSS v2.0 7.5 High

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

Exploitation status

Exploited in the wild

Recorded 2026-06-06 00:00:00 UTC · The Shadowserver (via CIRCL)

Proof of concept available

Recorded 2022-07-20 10:10:01 UTC · GitHub

Known exploited vulnerability sources

Catalogues that list this CVE as a known exploited vulnerability.

Source Added
The Shadowserver (via CIRCL) First 2026-06-06 00:00 UTC

Scanner integrations

Potential proof of concepts

These PoCs are unverified and could contain malware. Use at your own risk.

l0n3m4n/CVE-2022-29078

github · Created 2024-11-05 06:15:45 UTC · 2 stars

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

miko550/CVE-2022-29078

github · Created 2022-07-20 10:10:01 UTC · 7 stars

vuln ejs 3.1.6 docker

Timeline

  • CVE ID Reserved

  • CVE Published to Public

  • Proof of Concept Exploit Available

  • Detected by Nuclei

  • Added to KEVIntel