Check for LiteLLM 1.107.0 and rotate every key it could reach

Poisoned LiteLLM 1.107.0 stole provider keys on every Python start · Security incident · News · LiteLLM · Oct 21, 2026

What happened

On 21 Oct LiteLLM's release pipeline was compromised and a malicious 1.107.0 went out on PyPI (about 11:39 to 13:23 UTC) and Docker tags including latest. Its wheels added cook.pth, cook.py and sitecustomize.py, which run a credential stealer on every Python start, even without importing litellm. It took provider keys, the proxy's stored credentials table, cloud, SSH and CI secrets, and Cursor and Claude config, then left an hourly remote-code loader. LiteLLM says 1.106.2 and the private enterprise release are safe.

How to prevent it

Pin dependencies and Docker images to exact versions or digests instead of latest. If a machine ran litellm 1.107.0, treat it as compromised: rebuild it from a clean image and rotate every key it could reach at the provider that issued it. See our API key guide.

Fix prompt for your own AI tool

Copy this into your own AI tool (Cursor, Lovable, Claude Code, Bolt…). It's general guidance written by us. Review what the AI suggests before applying it.

I build AI apps and may use LiteLLM directly or through another tool. Help me check whether I was hit by the poisoned litellm 1.107.0 release from 21 Oct 2026 and clean up safely. 1) Show me how to find every place litellm is installed or pulled: requirements files, lock files, Dockerfiles, docker-compose, CI configs and any servers, and which version each uses. Don't run Python on a suspect machine to check, because the malware runs on every Python start. 2) If any used 1.107.0 or pulled the latest, main-latest or main-stable images on 21 Oct, tell me how to isolate that machine, look for cook.pth, cook.py and sitecustomize.py in site-packages, and rebuild from a clean image instead of uninstalling. 3) Give me a list of every secret that machine could reach (provider keys, proxy master keys, DATABASE_URL, cloud roles, GitHub and npm tokens) and the order to rotate them at each issuer. 4) Show me how to pin litellm to 1.106.2 or a later verified release and pin Docker images by digest. Don't change anything until I've approved your plan. Never ask me to paste API keys, passwords or .env contents; tell me where to check them myself.

Why this keeps happening: dependencies, plugins & mcp servers

AI tools suggest packages, editor extensions and MCP servers by name, and attackers publish look-alike or hijacked versions that steal keys or run code on install.

A quick checklist before you ship

More on this: every dependencies, plugins & mcp servers story and our related guide.

Tools involved

LiteLLM stories, OpenAI stories, Anthropic API stories, Cursor stories, Claude Code stories

Related stories

Source: original post on News ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.

The Honest Build. Real stories, not hype.

Every week: real stories of what building with AI actually took, the one lesson worth keeping, and the security slip-ups to avoid. Free, unsubscribe anytime. Weekly, every Friday.