ejs vulnerable to DoS due to weak input validation

ejs Updated 02 Oct 2025

Summary

05/03/2018
Yes i
High
7.5

CVE-2017-1000189: ejs vulnerable to DoS due to weak input validation. Affects ejs versions < 2.5.5. Fixed in 2.5.5. How to fix ↓

Also tracked for

The same CVE-2017-1000189 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

nodejs ejs version older than 2.5.5 is vulnerable to a denial-of-service due to weak input validation in ejs.renderFile()

How To Fix

Minimum fixed version

2.5.5

This is the first release that contains the fix.

npm install ejs@2.5.5

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Share this vulnerability

Related vulnerabilities

Recent vulnerabilities recorded for ejs.

How To Fix

Minimum fixed version

2.5.5

This is the first release that contains the fix.

npm install ejs@2.5.5

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.