PT-2022-3563

CVE-2022-29078

·

Published

2022-04-25

·

Updated

2026-07-16

Description by

CVSS 2.0
10
Critical
MetricsAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions ejs versions 3.1.6
Description The issue is related to the ejs package for Node.js, which allows server-side template injection in settings[view options][outputFunctionName]. This can be parsed as an internal option and overwrites the outputFunctionName option with an arbitrary OS command, which is executed upon template compilation. The vulnerability can be exploited by a remote attacker to execute arbitrary commands.
Recommendations For ejs version 3.1.6, consider updating to a newer version that contains a fix for this issue. As a temporary workaround, restrict access to the outputFunctionName option in the settings[view options] to minimize the risk of exploitation. Avoid using the outputFunctionName option in the affected template compilation until the issue is resolved.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-PHWQ-J96M-2C2Q
Found an issue in the description? Have something to add? Feel free to write us 👾