eval() call detected
High
- Category
- Dangerous Code Execution
- Content
def _safe_eval(expr): """Evaluate a condition expression in a restricted environment.""" try: return bool(eval(expr, _SAFE_GLOBALS, _SAFE_LOCALS)) except Exception as e: raise RuntimeError(f"Condition evaluation failed: '{expr}'. {e}")- Confidence
- 89% confidence
- Finding
- return bool(eval(expr, _SAFE_GLOBALS, _SAFE_LOCALS))
