VDB
Sign up
HIGH7.5

PYSEC-2026-1548

LiteLLM Reveals Portion of API Key via a Logging File

Quick fix

PYSEC-2026-1548 — litellm: upgrade to the fixed version with the command below.

pip install --upgrade 'litellm>=1.44.12'

Details

In berriai/litellm before version 1.44.12, the `litellm/litellm_core_utils/litellm_logging.py` file contains a vulnerability where the API key masking code only masks the first 5 characters of the key. This results in the leakage of almost the entire API key in the logs, exposing a significant amount of the secret key. The issue affects version v1.44.9.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/litellm
Introduced in: 0Fixed in: 1.44.12
Fixpip install --upgrade 'litellm>=1.44.12'

References