CVE catalog

CVE-2022-29078

node-ejs: CVE-2022-29078

[CVE catalog]

Severity
Critical · CVSS 9.8CVSS: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.

DistributionPackageReleaseVersionStatus
Debiannode-ejssid3.1.10+~3.1.5-2fixed
Debiannode-ejsforky3.1.10+~3.1.5-2fixed
Debiannode-ejstrixie3.1.10+~3.1.5-2fixed
Debiannode-ejsbookworm3.1.8+~3.1.1-2fixed
Ubuntunode-ejs18.042.5.2-1vulnerable
Ubuntunode-ejs18.042.5.7-1vulnerable
Ubuntunode-ejs20.042.5.7-1vulnerable
Ubuntunode-ejs22.042.5.7-3vulnerable
Ubuntunode-ejs22.043.1.6-2vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-ejssourcesid3.1.7-1not yet assignedNot reported[1010359]
Debiannode-ejssourceforky3.1.7-1not yet assignedNot reported[1010359]
Debiannode-ejssourcetrixie3.1.7-1not yet assignedNot reported[1010359]
Debiannode-ejssourcebookworm3.1.7-1not yet assignedNot reported[1010359]

[Debian bug #1010359]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [node-ejs]Fixed
    Details (2)
    • 3.1.8+~3.1.1-2 · all · bookworm

      Fixed · Fixed: 3.1.7-1

      dsa · node-ejs · debian · bookworm

    • 3.1.8+~3.1.1-2 · all · bookworm

      Fixed · Fixed: 3.1.7-1

      dsa · node-ejs · debian · bookworm

Observed:

References