CVE-2022-29078

CRITICAL EXPLOITED NUCLEI

ejs 3.1.6 - Code Injection

Title source: llm

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

Exploits (6)

nomisec WORKING POC 8 stars
by miko550 · remote
https://github.com/miko550/CVE-2022-29078
nomisec WORKING POC 3 stars
by l0n3m4n · remote-auth
https://github.com/l0n3m4n/CVE-2022-29078
nomisec WORKING POC
by amusedx · poc
https://github.com/amusedx/CVE-2022-29078
nomisec WORKING POC
by seal-sec-demo-2 · poc
https://github.com/seal-sec-demo-2/npm-demo
nomisec WORKING POC
by chuckdu21 · remote
https://github.com/chuckdu21/CVE-2022-29078
nomisec STUB
by shurochka1396 · poc
https://github.com/shurochka1396/expluatation_CVE-2022-29078

Nuclei Templates (1)

Node.js Embedded JavaScript 3.1.6 - Template Injection
CRITICALby For3stCo1d

Scores

CVSS v3 9.8
EPSS 0.9346
EPSS Percentile 99.8%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Details

VulnCheck KEV 2024-09-18
CWE
CWE-94
Status published
Products (2)
ejs/ejs 3.1.6
npm/ejs 0 - 3.1.7npm
Published Apr 25, 2022
Tracked Since Feb 18, 2026