Description
nodejs ejs versions older than 2.5.3 is vulnerable to remote code execution due to weak input validation in ejs.renderFile() function
Recommendation
Update the ejs package to the latest compatible version. Followings are version details:
- Affected version(s): < 2.5.3
- Patched version(s): 2.5.5
References
Could your website be exposed too?
SmartScanner can check your website for ejs is vulnerable to remote code execution due to weak input validation and gives you actionable findings to investigate.
Start a free scanRelated Issues
- ejs vulnerable to DoS due to weak input validation - CVE-2017-1000189
- Strapi plugins vulnerable to Server-Side Template Injection and Remote Code Execution in the Users-Permissions Plugin - CVE-2023-22621
- Lobe Chat Desktop vulnerable to Remote Code Execution via XSS in Chat Messages - CVE-2025-59417
- LiquidJS is Vulnerable to Remote Code Execution - CVE-2026-45618
You might also like:
See something that needs correcting? Let us knowUpdated September 08, 2023


