CVE-2022-29078
highpriority · attend · 60EPSS 0.328 · 98 %ileexploit · PoCDEEURUUSEPSS · scored 2026-10-27
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).
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 7.5–9.8
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (9)
Public proof-of-concept and weaponised exploit code.
- amusedx/CVE-2022-29078amusedx/CVE-2022-29078PoC · poc_in_github
- chuckdu21/CVE-2022-29078PoC for CVE-2022-29078PoC · poc_in_github
- miko550/CVE-2022-29078vuln ejs 3.1.6 dockerPoC · poc_in_github
affected products (13)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2022-0909IBM DB2: Mehrere Schwachstellen ermöglichen CodeausführungDeutsch2022-08-03csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in IBM DB2 ausnutzen, um beliebigen Programmcode auszuführen, Informationen offenzulegen, einen Denial of Service Zustand herbeizuführen oder Dateien zu manipulieren.
- GHSA-phwq-j96m-2c2qejs template injection vulnerability2022-04-26ghsa · osvUS
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).
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (15)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2022-29078/cnnvd
- https://eslam.io/posts/ejs-server-side-template-injection-rce/cnnvd
- https://github.com/mde/ejs/releasescnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2022-29078cnnvd
- https://security.netapp.com/advisory/ntap-20220804-0001/cnnvd
- https://www.auscert.org.au/bulletins/ESB-2022.3391cnnvd
- https://www.auscert.org.au/bulletins/ESB-2022.3446cnnvd
- https://www.auscert.org.au/bulletins/ESB-2022.3892.2cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan