Skip to content

fix: CRITICAL: Hard pin litellm<=1.82.6 to mitigate supply chain attack#1961

Merged
zastrowm merged 1 commit intostrands-agents:mainfrom
udaymehta:pin-litellm-supply-chain-attack
Mar 24, 2026
Merged

fix: CRITICAL: Hard pin litellm<=1.82.6 to mitigate supply chain attack#1961
zastrowm merged 1 commit intostrands-agents:mainfrom
udaymehta:pin-litellm-supply-chain-attack

Conversation

@udaymehta
Copy link
Contributor

Description

There seems to be a vulnerability issue in the newer version of litellm (Malicious file is litellm_init.pth) and the owner's account is compromised, you can check the issue below.

Related Issues

Relates to BerriAI/litellm#24512

https://futuresearch.ai/blog/litellm-pypi-supply-chain-attack/

@udaymehta
Copy link
Contributor Author

@pgrayy @zastrowm @mkmeral

@github-actions
Copy link

Assessment: Approve

This is an appropriate and necessary response to a critical supply chain attack affecting litellm versions 1.82.7 and 1.82.8. The change correctly pins the upper bound to 1.82.6, the last known safe version.

Review Summary
  • Security: Change addresses the immediate threat by blocking installation of compromised versions
  • Correctness: The <=1.82.6 constraint properly excludes 1.82.7 and 1.82.8
  • Scope: Minimal, targeted change affecting only the litellm optional dependency

Thanks for the quick response on this security issue! 🛡️

@zastrowm
Copy link
Member

I believe that the workflow failures might be because it's in quarantine: https://pypi.org/project/litellm/

@codecov
Copy link

codecov bot commented Mar 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@udaymehta udaymehta deployed to manual-approval March 24, 2026 16:42 — with GitHub Actions Active
@udaymehta udaymehta changed the title [Security] CRITICAL: Hard pin litellm<=1.82.6 to mitigate supply chain attack fix: CRITICAL: Hard pin litellm<=1.82.6 to mitigate supply chain attack Mar 24, 2026
@udaymehta
Copy link
Contributor Author

I believe that the workflow failures might be because it's in quarantine: https://pypi.org/project/litellm/

Looks like its fine now since the compromised versions are taken off for now.

Ready for merge.

@zastrowm zastrowm merged commit 0a723bc into strands-agents:main Mar 24, 2026
24 of 50 checks passed
@zastrowm
Copy link
Member

Thanks for this @udaymehta.

Release v1.33.0 will have this change and is in progress: R​elease v1.33.0 · strands-agents/sdk-python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants