Critical severity9.8NVD Advisory· Published Apr 25, 2022· Updated Jun 17, 2026
CVE-2022-29078
CVE-2022-29078
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).
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
ejsnpm | < 3.1.7 | 3.1.7 |
Affected products
3- ejs/Embedded JavaScript templatesdescription
Patches
Vulnerability mechanics
References
8- eslam.io/posts/ejs-server-side-template-injection-rce/nvdExploitPatchThird Party Advisory
- github.com/advisories/GHSA-phwq-j96m-2c2qghsaADVISORY
- github.com/mde/ejs/releasesnvdRelease NotesThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2022-29078ghsaADVISORY
- security.netapp.com/advisory/ntap-20220804-0001/nvdThird Party Advisory
- eslam.io/posts/ejs-server-side-template-injection-rceghsaWEB
- github.com/mde/ejs/commit/15ee698583c98dadc456639d6245580d17a24bafghsaWEB
- security.netapp.com/advisory/ntap-20220804-0001ghsaWEB
News mentions
0No linked articles in our index yet.