Skip to main content
ExploitedNot in CISA KEV yetFix available

CVE-2022-29078

Exploitation confirmed. First attested on 2024-09-18 by GCVE · kevintel, GCVE · shadowserver.

  • Published2022-04-25
  • WeaknessCWE-94

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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

Timeline

dates in UTC
  1. 2022-04-2515:15CVE publishedNVD
  2. 2024-09-1800:55Listed as exploited by GCVEGCVE
  3. 2024-09-1800:55Exploitation first reportedGCVE

Observed activity

isMalicious corpus · updated 2026-11-03 21:37 UTC
Indicators tagged with this CVE, per day0 indicators over 7 days
Block these indicators
  • Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2022-29078?format=txt
  • CSV export: https://api.ismalicious.com/edl/cve/CVE-2022-29078?format=csv
  • TAXII collection of exploited CVEs
  • The EDL and CSV take an API key on the Pro plan.

Versions per branch

NVD · OSV
Ejs
BranchAffectedFixed in
3.1= 3.1.6no fix published
ejs
BranchAffectedFixed in
3.1< 3.1.73.1.7

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • @rootio/ejsRoot:npmall versions · fixed in 2.7.4-root.io.1
  • ejsTuxCare:npmfrom 1.0.0-tuxcare.0 · fixed in 1.0.0-tuxcare.1
  • ejsTuxCare:npmfrom 2.7.4-tuxcare.0 · fixed in 2.7.4-tuxcare.1
  • ejsRoot:npmall versions · fixed in 2.7.4-aikido.1
  • node-ejsUbuntu:22.04:LTSall versions · no fixed version listed
  • node-ejsUbuntu:20.04:LTSall versions · no fixed version listed
  • node-ejsUbuntu:18.04:LTSall versions · no fixed version listed
  • node-ejsDebian:14all versions · fixed in 3.1.7-1

2 more package ranges on OSV.dev

Vendor advisories

  • CVE-2022-29078 Red Hat Product Security15 known affected

    ejs: server-side template injection in outputFunctionName

    rhmtc/openshift-migration-ui-rhel8 as a component of Migration Toolkit for Containers · migration-toolkit-virtualization/mtv-ui-rhel8 as a component of Migration Toolkit for Virtualization · rhacm2/console-header-rhel8 as a component of Red Hat Advanced Cluster Management for Kubernetes 2 · +12 more

Full record on NVD

Fix

  1. No fix available, says the vendor Red Hat Product Security CVE-2022-29078 · 9 productsAffected
  2. No fix planned, says the vendor Red Hat Product Security CVE-2022-29078 · 2 productsOut of support scope
  3. No fix planned, says the vendor Red Hat Product Security CVE-2022-29078 · 4 productsWill not fix

Advisories and patches

Detection

read 2026-11-03 22:42 UTC
Nuclei template
available
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2022-04-25
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-phwq-j96m-2c2q

Frequently asked questions

What is CVE-2022-29078?

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

Is CVE-2022-29078 actively exploited?

Active exploitation of CVE-2022-29078 has not been confirmed. Its EPSS score was 32.8% on 2026-11-03, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-29078?

CVE-2022-29078 has a CVSS v3 base score of 9.8 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running ejs? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record