CVE-2022-29078
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).
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Debian Fixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 3.1.7-1 |
| sid | Fixed | 3.1.7-1 |
| forky | Fixed | 3.1.7-1 |
| bullseye | Fixed | 2.5.7-3+deb11u1 |
| bookworm | Fixed | 3.1.7-1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| npm | ejs | <3.1.7 | 3.1.7 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-29078
- https://github.com/mde/ejs/commit/15ee698583c98dadc456639d6245580d17a24baf
- https://eslam.io/posts/ejs-server-side-template-injection-rce
- https://github.com/mde/ejs
- https://github.com/mde/ejs/releases
- https://security.netapp.com/advisory/ntap-20220804-0001
- https://security-tracker.debian.org/tracker/CVE-2022-29078
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.