{"id":"GHSA-phwq-j96m-2c2q","summary":"ejs template injection vulnerability","details":"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).","aliases":["CVE-2022-29078"],"modified":"2023-11-01T04:58:39.927078Z","published":"2022-04-26T00:00:40Z","database_specific":{"cwe_ids":["CWE-74"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2022-04-27T14:36:21Z","nvd_published_at":"2022-04-25T15:15:00Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29078"},{"type":"WEB","url":"https://github.com/mde/ejs/commit/15ee698583c98dadc456639d6245580d17a24baf"},{"type":"WEB","url":"https://eslam.io/posts/ejs-server-side-template-injection-rce"},{"type":"PACKAGE","url":"https://github.com/mde/ejs"},{"type":"WEB","url":"https://github.com/mde/ejs/releases"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20220804-0001"}],"affected":[{"package":{"name":"ejs","ecosystem":"npm","purl":"pkg:npm/ejs"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.1.7"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/04/GHSA-phwq-j96m-2c2q/GHSA-phwq-j96m-2c2q.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}