All vulnerabilities

Servers and applications

GHSA-mpqq-3cc5-fgh2

Virtual keys stored unhashed in spend logs and logging callbacks when a request fails authorization checks

Severity
Low 3.8
Published
23 Nov 2026
Last changed
23 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
1.83.3, 1.85.3, 1.86.3
Weakness
Sensitive information in log files (CWE-532)
Attack
Over the network · Needs an administrator account · No user action needed
Attacker can
Read some data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N
Sources
Project advisories (GitHub)

Description

When a request with a valid virtual key failed the proxy's authorization checks, the proxy logged the failure using the raw Authorization header value, Bearer sk-..., instead of the key's hash. Examples of such failures are a model the key's team is not allowed to use, an exceeded budget, or a denied tool or vector store. The step that hashes keys before logging only recognized values starting with sk-, so the Bearer prefix caused the full key to be stored as written. Keys are now hashed whether or not they carry the Bearer prefix.

The full virtual key was written to the api_key column and metadata of LiteLLM_SpendLogs, to LiteLLM_ErrorLogs when error logs are enabled, and to every configured failure callback (for example Langfuse, OpenTelemetry, Datadog or Sentry). Anyone who can read the proxy's logs, its database or backups, or a connected observability backend can recover these keys and use them to make requests as their owners. The key was not returned to the HTTP client.

From BerriAI/litellm's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
LiteLLMServers and applications · github:berriai/litellm
  • From 1.83.14 before 1.83.3
  • From 1.85.0 before 1.85.3
  • From 1.86.0 before 1.86.3

About LiteLLM

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

From its GitHub repository.
Weekly downloads (PyPI)
25,827,159PyPI Stats, 22 Nov 2026
GitHub stars
63,681GitHub, 22 Nov 2026
Forks
13,467GitHub, 22 Nov 2026
Latest release
v1.110.2GitHub, 22 Nov 2026
Released
20 Nov 2026GitHub
First published on GitHub
27 Jul 2023GitHub

References