#VU50710 Code Injection in EJS

 

#VU50710 Code Injection in EJS

Published: February 15, 2021


Vulnerability identifier: #VU50710
Vulnerability risk: Medium
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: N/A
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
EJS
Software vendor:
EJS

Description

The vulnerability allows a remote attacker to execute arbitrary JS code on the target system.

The vulnerability exists due to improper input validation passed via the filename in lib/ejs.js. A remote attacker can send a specially crafted request and execute arbitrary JavaScript code in victim's browser.



Remediation

Install updates from vendor's website.

External links