Disclosed weakness · no CVE recorded
LiteLLM stream parsing differences could bypass output rules
LiteLLM · LiteLLM · Anthropic SSE tool and masking guards
First documented disclosure · Review checkpoint
Summary
Some stream shapes can be read differently by the guardrail and the client, leaving denied tool calls or unscanned content deliverable.
Severity and exploitation evidence
No CVSS score recorded in this review.
Exploitation not established: Reviewed public reports and controlled reproductions do not establish malicious exploitation against users. No exploit 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
The shared SSE assembly and unchanged-stream forwarding path did not consistently match client line parsing, block ordering, input deltas and incomplete hosted-tool blocks.
Conditions required
An operator uses tool_permission or affected output-masking hooks on streamed /v1/messages, and an upstream emits the affected framing or block shapes that the client interprets differently.
Potential impact
Configured tool denials or masking may not apply to the tool inputs or text the client actually reads.
Affected versions and configurations
Contributor reports demonstrate behavior on named main-branch commits. A complete affected-release range is not established.
Fix and mitigation status
Merged PR53396 adds an initial shared-reader correction. Open PR53673 proposes further framing and unfinished-block checks. No released build containing the complete proposed correction is verified.
Practical next steps
Treat the affected streaming guard as incomplete; constrain upstreams and tool execution independently, and use validated request/response paths while tracking the remaining correction.
Operating lesson
The policy check and the consumer must interpret the same bytes.
Evidence and limits
Contributor finding, not a published security advisory. Earliest reviewed public shared-parser report is PR53396 on November 21; PR53673 opened November 23 and is OPEN. Full reports and production diffs reviewed. The follow-up proposes canonical frames for ambiguous allowed streams and checking unfinished hosted blocks. Presidio and fail-closed Model Armor reject ambiguous streams; Model Armor fail_on_error=false remains a distinct permissive mode. mcp_tool_use is explicitly outside the follow-up. Reported relays/SDK/provider trials are controlled evidence, not malicious exploitation or an independent replay. PR53396 merged November23 at 11:09:44Z as fdf3bab02f77b5bb28e6b4f0a062f4557d71d8ef, inside this review interval; the November21 public disclosure date is preserved.
Sources
- Merged initial shared-reader and Presidio correction
Primary source ·
- LiteLLM contributor report and proposed correction #53673
Primary source ·
- Merged initial correction commit
Primary source ·