From f38f5d48b0ef40abd3aa999d166c8bf8c7d5fe56 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Fri, 24 Apr 2026 20:26:33 -0700 Subject: [PATCH] fix: guard team_object.team_id is None in _check_team_member_model_budget to prevent budget bypass --- litellm/proxy/auth/auth_checks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litellm/proxy/auth/auth_checks.py b/litellm/proxy/auth/auth_checks.py index e5712f9c000..5a258d74181 100644 --- a/litellm/proxy/auth/auth_checks.py +++ b/litellm/proxy/auth/auth_checks.py @@ -3354,6 +3354,7 @@ async def _check_team_member_model_budget( """ if ( team_object is None + or team_object.team_id is None or valid_token is None or valid_token.user_id is None or model is None