{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-29078","published":"2022-04-25T15:15:49.887000Z","last_modified":"2026-06-17T04:39:32.440000Z","status":"Modified","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-94"],"cpes":[{"criteria":"cpe:2.3:a:ejs:ejs:3.1.6:*:*:*:*:node.js:*:*","part":"a","vendor":"ejs","product":"ejs","version":"3.1.6"}],"cpes_truncated":false,"vendors":["ejs"],"products":["ejs/ejs"],"epss":{"score":0.27859,"percentile":0.98534,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-phwq-j96m-2c2q","ecosystem":"npm","name":"ejs","purl":"pkg:npm/ejs","ranges":[{"introduced":"0","fixed":"3.1.7"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":77,"links":{"html_es":"/es/cve/CVE-2022-29078/","html_en":"/en/cve/CVE-2022-29078/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-29078","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-29078"},"untrusted":{"vendor_name":"Ejs","product_name":"Ejs","desc_en":"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).","affected":[],"references":[{"url":"https://eslam.io/posts/ejs-server-side-template-injection-rce/","tags":["Exploit","Patch","Third Party Advisory"]},{"url":"https://github.com/mde/ejs/releases","tags":["Release Notes","Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20220804-0001/","tags":["Third Party Advisory"]}]}}