Advisory

GHSA-phwq-j96m-2c2q

Also known as: CVE-2022-29078

Summary

ejs template injection vulnerability

Details

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

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-04-26 00:00 UTC
Modified
2023-11-08 04:09 UTC

Affected packages and fixes

ejs

npm · All systems

Affected

  • introduced 0, fixed 3.1.7 (semver)

Fixed versions

3.1.7

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences