GHSA-phwq-j96m-2c2q

Suggest an improvement
Source
https://github.com/advisories/GHSA-phwq-j96m-2c2q
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/04/GHSA-phwq-j96m-2c2q/GHSA-phwq-j96m-2c2q.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-phwq-j96m-2c2q
Aliases
Published
2022-04-26T00:00:40Z
Modified
2023-11-01T04:58:39.927078Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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).

Database specific
{
    "nvd_published_at": "2022-04-25T15:15:00Z",
    "cwe_ids": [
        "CWE-74"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2022-04-27T14:36:21Z"
}
References

Affected packages

npm / ejs

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.1.7