SCA: security update for ejs (GHSA-phwq-j96m-2c2q)

critical Tenable Self-Hosted Container Security Plugin ID 417547

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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). (CVE-2022-29078)

See Also

https://github.com/advisories/GHSA-phwq-j96m-2c2q

Plugin Details

Severity: Critical

ID: 417547

Version: Revision 1.5

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 6/1/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

Vendor

Vendor Severity: Critical

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.9

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2022-29078

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

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

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 4/26/2022

Vulnerability Publication Date: 4/25/2022

Reference Information

CVE: CVE-2022-29078

cwe: CWE-74