Skip to main content
← All vulnerabilities
CVE-2022-29078GHSA-PHWQ-J96M-2C2Q

The ejs (aka Embedded JavaScript templates) package 3.1.6 for Node.js allows server-side template injection in settings[view options][output

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.1.7
9 proofs of concept on GitHub, 1 Nuclei template

Summary

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

Timeline

  1. CVE published
  2. Record last updated
  3. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • n/a n/a

    Version range not reported

  • ejsnpm

    fixed in 3.1.7

References 13

GitHub · mde/ejs

eslam.io

security.netapp.com

GitHub · projectdiscovery/nuclei-templates

GitHub · AlonNavon/npm-demo

GitHub · amusedx/CVE-2022-29078

GitHub · chuckdu21/CVE-2022-29078

GitHub · l0n3m4n/CVE-2022-29078

GitHub · miko550/CVE-2022-29078

GitHub · shurochka1396/expluatation_CVE-2022-29078

GitHub · taka3636/CVE-2022-29078

GitHub · test-avm-714877d2df585126/C-test-2

GitHub · test-avm-714877d2df585126/vuln-ejs-critical