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).

Published: 2022-04-25

CVSS: 9.8

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Download CVE-2022-29078 POC (Proof-of-Concept) here:

Tip: Download official Tor Browser at https://www.torproject.org/download/ to access .onion links.

https://connollyfinan.ie/poc-531-cve-2024-47875/

https://connollyfinan.ie/poc-211-cve-2016-8735/

https://connollyfinan.ie/poc-66-cve-2018-10933/

https://connollyfinan.ie/poc-645-cve-2024-30345/

https://connollyfinan.ie/poc-558-cve-2025-62221/