Skip to content
On CISA KEVCritical

CVE-2022-29078Ejs Command Injection

ejs template injection vulnerability

Published Apr 26, 2022 · Updated Oct 20, 2026 · Also known as DEBIAN-CVE-2022-29078, GHSA-phwq-j96m-2c2q, ROOT-APP-NPM-CVE-2022-29078, UBUNTU-CVE-2022-29078

Key Facts

Patch immediately
  • CVE-2022-29078 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Ejs, node-ejs (debian), @rootio/ejs (root).
  • It is exploited in the wild, listed in CIRCL KEV, Industry KEV feed since Sep 18, 2024. No public exploit code is known.
  • EPSS estimates a 33% probability of exploitation in the next 30 days.
  • Fixed versions are available, including @rootio/ejs 2.7.4-root.io.1, Ejs 2.7.4-aikido.1, Ejs 3.1.7.
  • Brandefense priority: patch immediately, because it is listed as exploited in the wild.

Scores

CVSS v3.1

9.8

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS (30-day exploit likelihood)

33%

Higher than 98.3% of all scored CVEs

Exploit maturity

Exploited (KEV)

ATLAS score

57/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Sep 18, 2024

876 days after publication

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Exploited (KEV)

Public exploit code

0

Proof-of-concept links

In-the-wild evidence

10

Reports of active use

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).

Known-Exploited Catalog Listings

CatalogAddedRemediation dueRansomware use
CIRCL KEVSep 18, 2024n/aNot reported
Industry KEV feedSep 18, 2024n/aNot reported

Affected Products

18 affected entries in total
ProductAffected versionsFixed in
EjsEjs3.1.63.1.7
node-ejsdebianSee advisory2.5.7-3+deb11u1
@rootio/ejsrootSee advisory2.7.4-root.io.1

Patched Releases

@rootio/ejs

2.7.4-root.io.1

Ejs

2.7.4-aikido.1, 3.1.7

node-ejs

2.5.7-3+deb11u1, 3.1.7-1

Timeline

  1. Publicly disclosed

    Apr 26, 2022

  2. Added to CIRCL KEV

    Sep 18, 2024

  3. Added to Industry KEV feed

    Sep 18, 2024

  4. Last updated

    Oct 20, 2026

Weakness Type

  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
  • CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')
  • CWE-94 Improper Control of Generation of Code ('Code Injection')

References

15 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2022-29078 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

More vulnerabilities

Figures as of Oct 24, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.