fix: pin liteLLM upper bound to 1.82.6 to mitigate supply chain attack#2772
Merged
seratch merged 1 commit intoopenai:mainfrom Mar 25, 2026
Merged
Conversation
liteLLM versions 1.82.7 and 1.82.8 were compromised via a supply chain attack. This pins the upper bound to 1.82.6, the last known safe version. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Pins the litellm optional dependency to prevent installation of known-compromised liteLLM releases (1.82.7/1.82.8) as a supply-chain mitigation.
Changes:
- Tighten
litellmoptional dependency constraint from<2to<=1.82.6to avoid compromised versions.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Member
|
This is only effective when a user installs the optional dependency via |
seratch
approved these changes
Mar 25, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
liteLLM versions 1.82.7 and 1.82.8 have been compromised by the TeamPCP hacking group via a supply chain attack through Trivy. The current dependency constraint
>=1.81.0, <2allows these malicious versions to be pulled in.Impact
The compromised versions steal sensitive credentials and secrets, including:
~/.ssh/)~/.aws/)~/.config/gcloud/)~/.kube/)Version 1.82.8 additionally installs a
.pthpersistence mechanism insite-packages, ensuring the malicious payload survives package upgrades and executes automatically on every Python interpreter startup — even after liteLLM itself is uninstalled.Fix
This PR pins the upper bound of the liteLLM optional dependency from
<2to<=1.82.6, which is the last known safe version before the compromise.Once BerriAI publishes a verified clean release, this upper bound can be raised again.
References