On October 21, 2026, the widely used open-source LLM gateway LiteLLM was compromised through a software supply chain attack, with malicious code distributed through its official Python package and container image registries. The incident affected the version litellm==1.107.0 and remained relevant for several hours across different distribution channels. The issue has since been resolved, but it underscores how a compromise in trusted infrastructure can expose credentials and infrastructure far beyond the immediate application.

What happened in the release pipeline

Attackers breached the LiteLLM release pipeline and published a malicious version of the software. The compromised package contained payloads designed to collect sensitive credentials accessible to the running environment and components intended to execute during Python interpreter startup, potentially allowing persistent access and remote code execution. The affected artifacts were pushed through official channels including PyPI, Docker Hub, and GitHub Container Registry, taking advantage of trusted distribution mechanisms.

According to the incident report, the attackers obtained GitHub CLI OAuth tokens belonging to three LiteLLM engineers. These credentials were used to bypass release protections, modify the release workflow, and publish artifacts built from a repository controlled by the attacker — one that closely mirrored the legitimate LiteLLM project. The malicious PyPI package was available for approximately two hours, from around 11:39 to 13:23 UTC, while compromised Docker images remained exposed until approximately 14:20 UTC.

Distributions and affected versions

DistributionAffected versions or tags
PyPIlitellm==1.107.0
Docker Hubv1.107.0, latest, main-latest, main-stable
GitHub Container RegistryCorresponding affected image tags including v1.107.0, latest, main-latest, and main-stable

LiteLLM advised that open-source users treat environments that installed or executed the compromised artifacts during those windows as potentially compromised. Customers on LiteLLM Enterprise were not affected by this incident.

Immediate actions for organizations

  1. Verify installed versions and container images. Check development, staging, and production environments for LiteLLM version 1.107.0 or any compromised container image during the exposure window. Do not rely on the current package version or image tag alone — review deployment records, installation logs, container digests, and build histories to determine what actually ran. LiteLLM recommends pinning to version 1.106.2 or another explicitly verified safe version, as versions published before the compromised release were unaffected.
  2. Treat exposed environments as potentially compromised. Simply updating or downgrading the package may not be sufficient if the malicious components executed. Follow LiteLLM's remediation instructions, isolate affected workloads, and rebuild environments from verified clean artifacts. Avoid starting Python processes in affected environments before completing cleanup, because the malicious code may execute during interpreter startup. Investigate for indicators of compromise — the absence of known indicators does not guarantee a clean environment.
  3. Rotate potentially exposed credentials. If a compromised artifact ran in an environment with access to secrets, assume those credentials may have been exposed and rotate them appropriately. Prioritize LLM provider API keys and LiteLLM proxy secrets, cloud credentials and workload identity permissions, database credentials used in connection strings, and SSH keys, developer access tokens, and other secrets available to processes on the affected host. Review cloud audit logs and identity activity for suspicious access, including use from unfamiliar infrastructure or locations.
  4. Review software supply chain controls. This incident shows that trusted registries and official repositories do not guarantee every published artifact is safe. Teams should evaluate dependency management practices including version pinning (avoiding floating package versions and mutable container tags in production), artifact verification (container digests, provenance, signatures where available), release pipeline security (restricting publishing permissions, enforcing approvals, protecting CI/CD workflows), secrets management (limiting credentials available to build and runtime environments), and detection and response capabilities (maintaining sufficient package, container, identity, and cloud audit logs).

Practical lessons for infrastructure and security teams

The LiteLLM incident offers several takeaways for teams responsible for infrastructure and security:

  • Check for affected versions. Review package versions, container images, and deployment logs to determine whether any environment installed or ran the compromised release.
  • Clean up affected systems. If the compromised version ran in your environment, rebuild using trusted software and rotate any credentials that may have been exposed.
  • Investigate system activity. Check deployment logs, running processes, container activity, access logs, and network connections for signs of suspicious behavior.
  • Keep historical logs. Investigations may require data from before the incident was detected — short log retention periods can create gaps in the timeline.

Tools that collect and retain large telemetry data can help teams search and access historical information when responding to incidents like this one. Having the right observability data does not prevent every compromise, but it enables faster understanding and response.

Moving forward

The compromise was contained, and LiteLLM removed the affected artifacts. However, the episode reveals how an attacker with access to a few development credentials can subvert a release pipeline and distribute malicious code through channels that many organizations trust by default. The recommended mitigations — version pinning, artifact verification, pipeline hardening, and credential rotation — are not novel, but this incident provides a concrete reminder of their importance when operating at scale. Teams using LLM gateways or any widely deployed open-source infrastructure should review their supply chain practices and ensure they have mechanisms to verify the integrity of the software they run. Official source: LiteLLM Security Incident Report, October 21, 2026. This advisory reflects information published by LiteLLM as of October 23, 2026. For subsequent updates and detailed remediation instructions, refer to the official incident report.