All vulnerabilities

Servers and applications

GHSA-xpf6-jpp2-mm7r

Request headers, including Authorization and Cookie, stored in spend logs when prompt logging is enabled

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

Description

When store_prompts_in_spend_logs is enabled, LiteLLM Proxy saved each request's raw HTTP headers into the proxy_server_request column of the LiteLLM_SpendLogs table. The saved headers include Authorization (virtual keys and the master key), Cookie (dashboard session cookies), and any provider or custom credential headers the client sent.

The proxy keeps the incoming headers on the request for internal use. A change in 1.83.10 moved the snapshot of the request body to after that point, so the snapshot picked up the headers, and spend logging then serialized it to the database.

Anyone who can read spend logs can recover these credentials and act as the users who sent them. That includes admins and view-only admins in the UI, anyone with database or backup access, and any system that receives exported spend logs. Deployments that don't enable store_prompts_in_spend_logs are not affected.

From BerriAI/litellm's security advisory.

Workarounds

If you cannot upgrade, set store_prompts_in_spend_logs to false and clean up existing rows as described above.

Workarounds as given by BerriAI/litellm's security advisory.

Affected software

SoftwareAffected versions
LiteLLMServers and applications · github:berriai/litellm
  • Every version before 1.84.0

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