Description
nodejs ejs version older than 2.5.5 is vulnerable to a Cross-site-scripting in the ejs.renderFile() resulting in code injection
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-ejs | 2.5.7-1 | — |
| Debian 13 | node-ejs | 2.5.7-1 | — |
| Debian 12 | node-ejs | 2.5.7-1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | ejs | < 2.5.5 | 2.5.5 | GHSA-hwcf-pp87-7x6p |