Arbitrary Code Injection Affecting node-ejs package, versions <3.1.7-1


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
32.81% (99th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-NODEEJS-2806246
  • published30 Apr 2022
  • disclosed25 Apr 2022

Introduced: 25 Apr 2022

CVE-2022-29078  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade Debian:unstable node-ejs to version 3.1.7-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream node-ejs package and not the node-ejs package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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

CVSS Base Scores

version 3.1