# Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') (CWE-95) The product receives input from an upstream component, but it does not neutralize code syntax before using the input in a dynamic evaluation call. - Prevalence: High No Shoulder rules - Impact: High OWASP Top 10 #3 - Prevention: See MITRE External reference **OWASP:** Injection (A03:2021-Injection) - #3 ## Description When user input is passed to eval() or similar functions without sanitization, attackers can inject arbitrary code that will be executed with the application's privileges. ## Prevention ## Consequences - Execute Unauthorized Code - Read Application Data - Modify Application Data ## Mitigations - Avoid using eval() and similar dynamic code execution functions - Use safer alternatives like JSON.parse() for data parsing - If eval is necessary, use strict input validation and sandboxing