diff --git a/frappe/utils/safe_exec.py b/frappe/utils/safe_exec.py index 064d9c9486..1b10fc30f1 100644 --- a/frappe/utils/safe_exec.py +++ b/frappe/utils/safe_exec.py @@ -484,7 +484,7 @@ def check_safe_sql_query(query: str, throw: bool = True) -> bool: """ query = query.strip().lower() - whitelisted_statements = ("select", "explain", "with") + whitelisted_statements = ("select", "explain") if query.startswith(whitelisted_statements): return True