Skip to main content
Intelligence Simplified
A packing label half peeled off a small crate in a dim loading bay.

April 2, 2026

Two LiteLLM Versions on PyPI Were Bad for About 40 Minutes

LiteLLM says versions 1.82.7 and 1.82.8 were malicious on March 24. The official proxy image was not on that path. A clean 1.83.0 followed on March 30.

Covers week of March 30, 2026.

If an app in your shop calls models through LiteLLM, read the maintainers’ March security update before you assume a lockfile from last month is still the one you think it is. Krrish Dholakia and Ishaan Jaffer say the compromised PyPI releases were litellm==1.82.7 and litellm==1.82.8. They were live on March 24 from 10:39 UTC for about 40 minutes, then PyPI quarantined them. Those versions have been removed. The same page’s “who may be affected” section uses a wider clock, through 16:00 UTC that day, for unpinned installs. I would check against the wider window and not talk myself into the shorter one.

A March 30 update on the page says v1.83.0 is a clean release from a new pipeline, and that no malicious code was pushed to main.

Who they say was not on the bad path

Customers on the official LiteLLM Proxy Docker image. That image pins dependencies in requirements.txt. LiteLLM Cloud. Installs from the GitHub source. Anyone on v1.82.6 or earlier who did not upgrade during the window.

Who should treat the machine as exposed

You pip-installed or upgraded on March 24 in that window and got 1.82.7 or 1.82.8. You built an image that day with an unpinned pip install litellm. Something else pulled LiteLLM in without a pin. The page names AI agent frameworks and orchestration tools as examples of that last path.

The payload, in their description, sat in proxy_server.py. Version 1.82.8 also added litellm_init.pth. They describe a credential stealer aimed at environment variables, SSH keys, cloud credentials (they name AWS, GCP, and Azure), Kubernetes tokens, and database passwords, posted to models.litellm.cloud, which they say is not an official BerriAI or LiteLLM domain. A March 26 update adds checkmarx.zone as a second indicator, also not theirs.

If you installed those versions, their instruction is to rotate the secrets that were on that machine: API keys, cloud keys, database passwords, SSH keys, Kubernetes tokens, and anything in environment variables or config files. Look for litellm_init.pth under site-packages. Move to 1.83.0 if you are staying on the project.

Pin the version. An unpinned install is how a 40-minute window becomes your production image. I would also separate the machine that builds containers from the machine that holds production keys, so a bad dependency has less to read.

If you are not sure whether a deploy in that window picked the bad versions up, look at image build logs for litellm and at any virtualenv created that day. A running container that was built earlier, from the official proxy image, is in the “not affected” bucket they describe. A laptop where someone ran an upgrade “to try the new proxy” is the bucket I would check first. Rotate only where you actually find 1.82.7 or 1.82.8. Rotating every secret in the company because the headline was scary wastes a day and teaches people to ignore the next one.

This is finish-the-app work: what you depend on, and what a bad install can read. I do that under Prototype to Production. If you are not sure whether a build picked up 1.82.7, email russ@intelligencesimplified.com and we can look at the lockfile together.

Sources

Russ Frisch

• Founder and software engineer

We take fixed-price work on data, AI workflows, and finishing apps. You work with the Intelligence Simplified team.

Expertise:

Data migration AI workflows Workflow automation Prototype to Production