LiteLLM's maintainers say a malicious litellm 1.107.0 was on PyPI from 4:39 to 6:23 AM PT on Oct 21. Docker Hub tags v1.107.0, latest, main-latest and main-stable pointed to a compromised image from 4:46 to 7:20 AM PT. The project says the code steals credentials, and that its Enterprise private registry wasn't affected.1

In an Oct 23 follow-up, the project explains how the attacker got in:2

  • A master key had been committed to a public repository on May 27 and was never revoked.
  • From Oct 10 the attacker used it to take GitHub tokens and repository secrets.
  • On Oct 21 two stolen maintainer approvals pushed the release through the project's own signing workflow.

The project says it has locked its registries and is revoking every token.2

Separately, at 1:33 PM PT on Oct 27, the project published critical advisory GHSA-w4c7-34wj-hqm8 (CVSS 3.1 score 10.0; no CVE listed).3

  • An unauthenticated request to an LLM route on an Enterprise-licensed proxy can read a local file and send it out. That exposes the master key and provider keys.
  • Open-source deployments without a license aren't affected.
  • Fixed versions: 1.106.5, 1.105.6, 1.104.8 and 1.103.10.

PyPI no longer lists 1.107.0.4

Context: we haven't reviewed LiteLLM. Our JetBrains review names it as one way to bring your own model keys.

Vendor claims

What the malware does and how the attacker got in is the project's account. We couldn't check either independently.12

What to do

  1. If you installed 1.107.0 or pulled those tags, don't run pip first. Remove the files the project lists, stop the process it names and rebuild.1
  2. If that host could reach the internet, assume secrets were taken. Rotate cloud roles, provider keys, master and virtual keys, and environment secrets.1
  3. Upgrade to a fixed version from the advisory.3
  4. If an Enterprise proxy can't be upgraded yet, apply the advisory's mitigations:3
    • Filter the listed request fields at your WAF.
    • Allowlist outbound traffic.
    • Load the master key from a secret manager.
    • Keep the proxy off the public internet.

Sources

  1. LiteLLM — Security incident, Oct 21, 2026 (Oct 21, 2026) — accessed Oct 28, 2026; official
  2. LiteLLM — Security incident: attack chain (Oct 23, 2026) — accessed Oct 28, 2026; official
  3. BerriAI/litellm — GHSA-w4c7-34wj-hqm8: Unauthenticated file read leaks master key on Enterprise proxy (Oct 27, 2026) — accessed Oct 28, 2026; official
  4. PyPI — litellm release history (Oct 27, 2026) — accessed Oct 28, 2026; official

Corrections: none so far. We fix errors in the open, note them here and on the corrections log. Spotted one? Email editors@software-lifecycle.com.