CVE-2022-29078
Critical
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).
SeverityCritical
CVSS9.8
Exploit probability—
ProductEjs
PublishedApr 25, 2022
First seenApr 25, 2022
How to fix
Update
- ejs3.1.7 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ejs ejs | 3.1.6 | — |
| ejsnpm | v < 3.1.7 | 3.1.7 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.