Skip to content

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]

fix SSRF via user-controlled OAuth URL

KnyazSh4c27c6772e19
diff --git a/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py b/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py
index 0a8f651522f..aa4951bc258 100644
--- a/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py
+++ b/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py
@@ -2566,6 +2566,11 @@ async def handle_gigachat_passthrough_router_model(
data["json"] = request_body
data["custom_llm_provider"] = "gigachat"
+ # Remove sensitive keys from data
+ keys = ["gigachat_auth_url", "gigachat_access_token", "gigachat_scope"]
+ for key in keys:
+ data.pop(key, None)
+
client = get_async_httpx_client( # type: ignore
llm_provider=LlmProviders.GIGACHAT,
params={