r/Python • • 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

419 Upvotes

44 comments sorted by

View all comments

Show parent comment

13

u/wRAR_ Oct 21 '26

That prevents installing fixed certifi, so...

23

u/cyberfunkr Oct 21 '26

You can add exceptions to project.toml and uv.lock so it can pull in the latest update immediately.

I just did that at work yesterday.

9

u/turbothy It works on my machine Oct 21 '26

Pick your poison. I've spent half the day bumping certifi pins, but I'd rather that than accidentally ingesting malware. Happens way less often for one.