litellm has 3 compromised versions.

CriticalCompromisePyPI

litellm has 3 versions on PyPI flagged in 2 incidents we track. Only the exact versions listed below were named by the source advisories. litellm is a legitimate package. Only the versions listed were malicious; other versions were not affected, but a lockfile that resolved to a listed version installed the payload.

At a glancePyPI
3
Compromised versionsDo not install these

If one is in your tree, treat the machine as compromised, not just out of date.

Ecosystem
PyPI
Worst severity
Critical
Incidents
2
First flagged
24 Mar 2026
Last flagged
21 Oct 2026
Type
Compromise

Version data comes from the public advisories cited on each incident page.

Affected versions

The exact releases to look for.

Check what you actually have installed with pip show litellm.

  • litellm@1.107.0
  • litellm@1.82.8
  • litellm@1.82.7
The incidents

The 2 incidents that flagged it

CriticalCompromise

LiteLLM compromised again: version 1.107.0 ships infostealer and RAT

On 2026-10-21 JFrog and Aikido disclosed that litellm 1.107.0 on PyPI ships an infostealer and a remote-access trojan in all 7 compiled wheels. A cook.pth file triggers the stealer at every Python interpreter start, harvesting credentials across cloud providers, CI/CD, browsers, AI tools, and package registries, while a sitecustomize.py hourly RAT loop fetches remote code from a GitHub dead-drop.

Versions named here: 1.107.0Read the incident →
CriticalCompromise

LiteLLM on PyPI backdoored as the TeamPCP cascade reaches Python

TeamPCP used credentials harvested from the Trivy compromise to publish trojanised litellm 1.82.7 and 1.82.8 to PyPI on 24 March 2026 (~10:39 and 10:52 UTC). Malicious wheels drop a litellm_init.pth file in site-packages, executing a credential stealer at every Python interpreter start. PyPI quarantined the packages ~40 minutes after publication. Attackers later claimed ~500,000 credentials from this single compromise. LiteLLM averages ~3M daily downloads and ships in ~36% of cloud environments.

Versions named here: 1.82.7, 1.82.8Read the incident →
What to do

Installed one of these? Start here.

Treat the machine as compromisedUpgrading is not enough. Packages in these incidents typically execute at install time, so the payload has already run with whatever credentials were in the environment.

  1. Rotate every credential that machine or CI job could reach, such as registry tokens, cloud keys, SSH keys and CI secrets, from a different machine.
  2. Pin to a version not listed above, then reinstall from a clean lockfile.
  3. Clear caches and private mirrors. Artifactory, Nexus, Verdaccio and devpi routinely keep serving a tarball after the public registry has pulled it.
  4. Read the incident write-up. Recommended actions differ per incident, and some have specific indicators of compromise worth searching your logs for.

Version data comes from the public advisories cited on each incident page. We list only versions those advisories name and do not infer additional ones. Think this is wrong or incomplete? Tell us.

Check your whole project

Check every dependency, not just this one.

It is usually pulled in as a transitive dependency rather than one you installed directly. Paste your requirements.txt to check every dependency at once. It runs in your browser and nothing is uploaded.