Disclosed weakness · no CVE recorded
LiteLLM interrupted native Responses streams could undercount billed usage
BerriAI · LiteLLM native Responses API
First documented disclosure · Review checkpoint
Summary
A caller disconnecting an OpenAI or Azure Responses stream could leave no spend entry or a small local estimate.
Severity and exploitation evidence
No CVSS score recorded in this review.
Exploitation not established: The reviewed sources establish a disclosed weakness or controlled evidence, not malicious exploitation against users. No product, package or payload was executed in this review.
Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.
How the weakness works
Stream cancellation closed the upstream before terminal provider usage arrived, losing reasoning and cached-token accounting.
Conditions required
An authorized caller starts a native streaming Responses request and disconnects before the provider finishes.
Potential impact
Local spend and audit records can understate provider charges; a demonstrated budget-limit bypass is not established.
Affected versions and configurations
Earlier native Responses implementations; exact introduction and full affected range are not established.
Fix and mitigation status
Stable LTS 1.108.20 includes the specific disconnect-drain correction.
Practical next steps
Upgrade and reconcile prior interrupted requests against provider billing; choose cancel_on_disconnect deliberately.
Operating lesson
Usage accounting must settle even when the client stops reading.
Evidence and limits
Public PR 54752 opened November 26; equivalent backports 54755 and 54772 share one merge commit and are not two flaws. Source confirms terminal-usage draining. Draining is capped at 600 seconds and holds the parallel slot. On drain failure it uses prior partial accounting; explicit cancel_on_disconnect retains the old cancellation path, including possible missing spend before output. Background, replayed, fallback and bridged stream paths are outside this correction. Maintainer tests establish controlled accounting behavior, not malicious use or historical charge recovery.
Sources
- Original native Responses correction
Primary source ·
- LTS backport
Primary source ·
- Stable LTS 1.108.20 release
Primary source ·
- Tagged provider-usage settlement
Primary source ·