ejs is vulnerable to remote code execution due to weak input validation
- Severity:
- High
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
Related Issues
- ejs vulnerable to DoS due to weak input validation - CVE-2017-1000189
- Signal K Server Vulnerable to Remote Code Execution via Malicious npm Package - CVE-2025-68619
- Lobe Chat Desktop vulnerable to Remote Code Execution via XSS in Chat Messages - CVE-2025-59417
- Nuxt vulnerable to remote code execution via the browser when running the test locally - CVE-2024-34344
You might also like:
- Tags:
- npm
- ejs
Anything's wrong? Let us know Last updated on September 08, 2023


