
CVE catalog
CVE-2022-29078
node-ejs: CVE-2022-29078
- Severity
- Critical · CVSS 9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 32.81% · Oct 25, 2026
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).
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | node-ejs | sid | 3.1.10+~3.1.5-2 | fixed |
| Debian | node-ejs | forky | 3.1.10+~3.1.5-2 | fixed |
| Debian | node-ejs | trixie | 3.1.10+~3.1.5-2 | fixed |
| Debian | node-ejs | bookworm | 3.1.8+~3.1.1-2 | fixed |
| Ubuntu | node-ejs | 18.04 | 2.5.2-1 | vulnerable |
| Ubuntu | node-ejs | 18.04 | 2.5.7-1 | vulnerable |
| Ubuntu | node-ejs | 20.04 | 2.5.7-1 | vulnerable |
| Ubuntu | node-ejs | 22.04 | 2.5.7-3 | vulnerable |
| Ubuntu | node-ejs | 22.04 | 3.1.6-2 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | node-ejs | source | sid | 3.1.7-1 | not yet assigned | Not reported | [1010359] |
| Debian | node-ejs | source | forky | 3.1.7-1 | not yet assigned | Not reported | [1010359] |
| Debian | node-ejs | source | trixie | 3.1.7-1 | not yet assigned | Not reported | [1010359] |
| Debian | node-ejs | source | bookworm | 3.1.7-1 | not yet assigned | Not reported | [1010359] |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [node-ejs]Fixed
Details (2)
3.1.8+~3.1.1-2· all · bookwormFixed · Fixed:
3.1.7-1dsa · node-ejs · debian · bookworm
3.1.8+~3.1.1-2· all · bookwormFixed · Fixed:
3.1.7-1dsa · node-ejs · debian · bookworm
Observed:
References
- [https://osv.dev/vulnerability/UBUNTU-CVE-2022-29078]
- [https://security-tracker.debian.org/tracker/CVE-2022-29078]
- [https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-29078.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2022/wid-sec-w-2022-0909.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]