CVE-2023-29827

NameCVE-2023-29827
Descriptionejs v3.1.9 is vulnerable to server-side template injection. If the ejs file is controllable, template injection can be implemented through the configuration settings of the closeDelimiter parameter. NOTE: this is disputed by the vendor because the render function is not intended to be used with untrusted input.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
node-ejs (PTS)bullseye2.5.7-3+deb11u1vulnerable
bookworm3.1.8+~3.1.1-2vulnerable
sid, trixie3.1.10+~3.1.5-2vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
node-ejssource(unstable)(unfixed)unimportant

Notes

https://github.com/mde/ejs/issues/720
Not considered a security issue by upstream, requires to never give unfiltered
input to the EJS's render function.

Search for package or bug name: Reporting problems