The ejs Package for Node.js is prone to a cross-site scripting vulnerability because it fails to sufficiently sanitize user-supplied input.
An attacker may leverage this issue to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This may allow the attacker to steal cookie-based authentication credentials and to launch code injection attacks.
Versions prior to ejs 2.5.5 are vulnerable.
Information
mde ejs 2.5.3
mde ejs 2.5.2
mde ejs 2.5.1
mde ejs 2.4.2
mde ejs 2.4.1
mde ejs 2.3.4
Exploit
To exploit this issue, an attacker must entice an unsuspecting victim to follow a malicious URI.
References: