CVE-2022-29078

Source
https://cve.org/CVERecord?id=CVE-2022-29078
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-29078.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-29078
Aliases
Downstream
Published
2022-04-25T14:13:32Z
Modified
2026-07-08T05:57:53.746038664Z
Summary
[none]
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
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29078.json",
    "cna_assigner": "mitre"
}
References

Affected packages

Git / github.com/mde/ejs

Affected ranges

Type
GIT
Repo
https://github.com/mde/ejs
Events
Database specific
{
    "source": "CPE_STRING",
    "cpe": "cpe:2.3:a:ejs:ejs:3.1.6:*:*:*:*:node.js:*:*",
    "extracted_events": [
        {
            "introduced": "3.1.6"
        },
        {
            "last_affected": "3.1.6"
        }
    ]
}

Affected versions

3.*
3.1.6
v3.*
v3.1.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-29078.json"