GHSA-phwq-j96m-2c2q

ejs template injection vulnerability

At a glance

Published
Updated
CVE
CVE-2022-29078
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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

Affected packages

PackageVersions
npm · ejsintroduced 0, fixed 3.1.7

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database