Repository navigation
fix: harden /key/update authorization checks #27878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
krrish-berri-2
merged 17 commits into
litellm_internal_staging
from
litellm_security_fixex_05_13_2026
May 14, 2026
Merged
Changes from 3 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
380d9fd
fix: patch Host-header auth bypass in get_request_route
krrish-berri-2 1227572
style: reduce comments in route fix
krrish-berri-2 d0823ba
fix: block credential fields in RAG ingest vector_store options
krrish-berri-2 2f7b8ee
fix: block /key/update self-escalation by assigned users
krrish-berri-2 6292249
fix: block user-controlled api_base in RAG ingest vector_store options
krrish-berri-2 91353bc
fix: restrict /utils/transform_request to PROXY_ADMIN and apply body …
krrish-berri-2 c692d94
fix: apply banned-param check to /utils/transform_request
krrish-berri-2 6f2a654
fix: block SSRF via api_base in /prompts/test dotprompt YAML frontmatter
krrish-berri-2 cc3f01b
Update litellm/proxy/rag_endpoints/endpoints.py
krrish-berri-2 eca10ad
fix: coerce nested config strings before banned-param check
krrish-berri-2 8fcb2b0
fix: replace substring match with prefix match in is_llm_api_route
krrish-berri-2 35c2d5b
fix: stabilize PR #27878 test failures
krrish-berri-2 c0312a8
fix(lint): add explicit str() cast in get_request_route for MyPy
krrish-berri-2 c28623f
fix: guard bare-/ root_path strip + make total_spend migration idempo…
krrish-berri-2 7b8a08a
fix: require creator still owns key for personal-key bypass in /key/u…
krrish-berri-2 72d7759
fix: extract auth checks to fix PLR0915 + broaden max_budget assertion
krrish-berri-2 d43c5d9
Merge branch 'litellm_internal_staging' into litellm_security_fixex_0…
krrish-berri-2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
High: Provider key exfiltration via api_base
Authenticated users can set
ingest_options.vector_store.api_baseto an attacker-controlled URL. The OpenAI/Gemini RAG ingestion paths pass that URL into provider calls while falling back to server-configured API keys, so the request sends the providerAuthorizationheader to the user-controlled host; rejectapi_basehere as well, or only accept it from server-side credentials/configuration.