CVE-2022-29078
ejs template injection vulnerability
9.8
CRITICAL
CVSS 3.1
EPSS 93.5%
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).
How to fix CVE-2022-29078
To remediate CVE-2022-29078, upgrade the affected package to a fixed version below.
- —upgrade to 2.5.7-3+deb11u1 or later
- —upgrade to 3.1.7 or later
Is CVE-2022-29078 being exploited?
Likely — EPSS is 93.5%, placing CVE-2022-29078 in the top tier of vulnerabilities by exploitation probability. Prioritise patching.
Affected packages (2)
- from 0, < 2.5.7-3+deb11u1
- from 0, < 3.1.7
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |