pypi package report

Is litellm safe?

Versions 1.82.8, 1.82.7 and 1.107.0 of litellm were compromised. Other versions are not flagged as malicious.

Do not install litellm 1.82.8, 1.82.7 or 1.107.0

CRITICAL

Compromised releases. Added to CyberXYZ 2026-03-24, OSV malicious-package feed (Google / OpenSSF).

// what we observed

LiteLLM was compromised through trivy security scan in a GitHub workflow. Attackers uploaded malicious versions of LiteLLM to PyPI. The malicious code would exfiltrate sensitive secrets to an attcker controlled domain. The OpenSSF Package Analysis project identified 'litellm' @ 1.82.8 (pypi) as malicious. It is considered malicious because: • The package executes one or more commands associated with malicious behavior.

Reported by Google Open Source Security and ossf-package-analysis via OSV.

// versions and what to do
Malicious
1.82.8, 1.82.7, 1.107.0
Move to
1.108.1 newest 1.x release, no known advisory

1.108.2 is newer but was published less than 6 hours ago. The CyberXYZ Proxy holds a new release for 6 hours before it installs without an alert, so it is not named here yet.

If one of these versions was installed, remove it and treat the credentials, tokens and SSH keys on that machine as exposed: rotate them. Check CI runners and container images that installed it too.

pip install "litellm==1.108.1"

OSV recordissueissuereferencereferencereference

// reach

94 direct dependencies

40 carry known advisories, worst CRITICAL

142 packages depend on it

an advisory here reaches each of them

Create a free accountfor every dependency path, dependent and what to upgrade
// ai model usage

No published models are known to use this package.


cvss
9.8
critical

CVSS v3.1 base score out of 10

epss
0.80%
medium

chance of exploitation in 30 days, 57th percentile of all CVEs

xyz score
5.4
medium

CyberXYZ composite out of 10

fig. 01 — GHSA-6wvf-77m9-58rm, the advisory selected below

// 44 advisories

GHSA-6wvf-77m9-58rm

CRITICALGitHub ratingCVE-2026-37004

BerriAI litellm <=1.82.4 is vulnerable to Server-Side Template Injection (SSTI), which allows unauthenticated remote attackers to execute arbitrary OS commands via a crafted dotprompt_content parameter in the /prompts/test endpoint due to use of an unsandboxed jinja2.Environment.

// cvss v3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Checked 2026-11-06 at 22:38 UTC. The most recent advisory here was published 2026-10-27. Updated continuously from NVD, GHSA, OSV and CNA feeds.

Think a verdict here is wrong? Tell us — we respond within 2 business days.