r/Python • u/BattleRemote3157 • Oct 21 '26
News litellm 1.107.0 on PyPI is compromised
the payloads run on every python start on the machine and not just when you import litellm. Your IDE, pip, CI jobs everything python on that host is affected.
It steals ssh keys, aws credentials, browser passwords, shell history and AI coding tool configs. The backdoor runs as a daemon and executes whatever code the attacker’s server returns every hour.
Pin to 1.106.2.
complete breakdown: safedep.io/litellm-pypi-compromise-credential-stealer-backdoor
416
Upvotes
182
u/Nice_Mix_1021 Oct 21 '26
litellm again....!
169
u/Jmc_da_boss Oct 21 '26
Litellm is a vibe code piece of shit btw
37
u/RedEyed__ Oct 21 '26
Again. I wonder about maintainer trustworthiness
55
u/crossmirage Oct 21 '26
> The upstream
pyproject.tomlat tagv1.107.0has nodata = "cook"line and nocook/folder. Someone changed the build outside the public repository.So it's an intentional action by a maintainer (i.e. not a question of overlooking something snuck into an OSS contribution).
30
u/dudaspl Oct 21 '26
After the first breach I configured uv with 7d quarantine
5
u/misbahsy Oct 21 '26
This is contained. Please refer to the official blog for the latest updates on the situation - https://docs.litellm.ai/blog/security-incident-oct-21-2026
2
u/RagnartheConqueror Oct 22 '26
Thanks for notifying us about this.
1
u/dmpiergiacomo Oct 22 '26
Ops they did it again...
1
u/Khavel_dev Oct 22 '26
The part that makes this one especially nasty is the scope. It doesn't just run when you import litellm, it hooks into every Python process on the machine. Your IDE, your CI, your package manager. And it specifically targets AI coding tool configs and API keys, so if you're running any LLM tools locally those credentials need rotating now.
If you had this version installed, pin and rotate everything. And lock the hash in your requirements file, not just the version number. An account that pushed a compromised package once can do it again.
1
u/Goldziher Pythonista Oct 22 '26
Switch to the xberg-io liter-llm, I'm the author:
https://github.com/xberg-io/liter-llm
1
u/senpaikcarter Oct 21 '26
Thankyou for this
1
u/openllm Oct 21 '26
If only there was an alternative... ;)
-1
u/No_Juggernaut_7205 Oct 22 '26
Have you tried checking the logs? Sometimes it's just a missing dependency.