Property
Languagescala
Severitymedium
CWECWE-94: Improper Control of Generation of Code (‘Code Injection’)
OWASPA03:2021 - Injection
Confidence LevelLow
Impact LevelHigh
Likelihood LevelLow

Description#

Using JavaScript’s eval() function in Scala.js with input that can come from users or external sources allows attackers to inject and execute arbitrary code. This makes your application vulnerable to code injection attacks.

Impact#

If exploited, an attacker could run malicious JavaScript in your application’s context—potentially stealing sensitive data, manipulating the app’s behavior, or compromising user accounts. This can lead to data breaches, unauthorized actions, or a complete takeover of affected systems.