The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(team): mypy — guard organization_id None before _verify_org_access call
user6c386af9c772
diff --git a/litellm/proxy/management_endpoints/organization_endpoints.py b/litellm/proxy/management_endpoints/organization_endpoints.pyindex 79b9c459e4b..ee683f322a1 100644--- a/litellm/proxy/management_endpoints/organization_endpoints.py+++ b/litellm/proxy/management_endpoints/organization_endpoints.py@@ -500,6 +500,12 @@ async def update_organization(if data.updated_by is None:data.updated_by = user_api_key_dict.user_id+ if data.organization_id is None:+ raise HTTPException(+ status_code=400,+ detail={"error": "organization_id is required"},+ )+# IDOR guard: only proxy admins / org admins of THIS org may update# it. Without this, any authenticated key holder could rewrite# another organization's metadata, budgets, and object permissions.