fix: pin litellm to <1.82.7 to avoid PYSEC-2026-2 supply-chain attack

Versions 1.82.7 and 1.82.8 of litellm were published on March 24, 2026
and contained malicious code that exfiltrated credentials (SSH keys,
cloud credentials, .env files, API keys) to an attacker-controlled domain.

Pin the dependency to >=1.70.0,<1.82.7 in both pyproject.toml and
requirements.txt as a stopgap until litellm can be replaced with direct
provider SDK calls.

See: https://github.com/HKUDS/OpenSpace/issues/31
Ref: PYSEC-2026-2, BerriAI/litellm#24521
This commit is contained in:
Marc von Renteln 2026-03-29 11:16:10 +02:00
parent 11bdf128d9
commit 4f61cb2fa1
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ authors = [
]
dependencies = [
"litellm>=1.70.0",
"litellm>=1.70.0,<1.82.7", # pinned to avoid PYSEC-2026-2 supply-chain compromise (1.82.7/1.82.8 were malicious)
"python-dotenv>=1.0.0",
"openai>=1.0.0",
"jsonschema>=4.25.0",

View file

@ -1,5 +1,5 @@
# OpenSpace core dependencies
litellm>=1.70.0
litellm>=1.70.0,<1.82.7 # pinned to avoid PYSEC-2026-2 supply-chain compromise (1.82.7/1.82.8 were malicious)
python-dotenv>=1.0.0
openai>=1.0.0
jsonschema>=4.25.0