GHSA-phwq-j96m-2c2q
ejs template injection vulnerability
At a glance
- Published
- Updated
- CVE
- CVE-2022-29078
- CVSS_V3
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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).
Affected packages
| Package | Versions |
|---|---|
| npm · ejs | introduced 0, fixed 3.1.7 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-29078 ADVISORY
- https://github.com/mde/ejs/commit/15ee698583c98dadc456639d6245580d17a24baf WEB
- https://eslam.io/posts/ejs-server-side-template-injection-rce WEB
- https://github.com/mde/ejs PACKAGE
- https://github.com/mde/ejs/releases WEB
- https://security.netapp.com/advisory/ntap-20220804-0001 WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |