News · Pydantic AI · 2 min read
Event date: · Published:
Pydantic AI fixes SSRF deserialization flaw in replayed tool-call history
GitHub disclosed a moderate severity flaw in Pydantic AI on November 20, 2026, where reloading serialized tool results could trigger unintended local network requests, S3 reads, or file downloads using the app's own credentials.
Pydantic AI disclosed a moderate severity security flaw on November 20, 2026, when GitHub Security Advisories published the GHSA-jvv4-fh7q-4c38 security advisory, describing how reloading serialized agent message history can let an attacker shaped tool result be reconstructed as one of the framework's file types, triggering unintended network or storage requests.
What the advisory discloses
- The advisory
GHSA-jvv4-fh7q-4c38affects thepydantic-aiandpydantic-ai-slimpackages - GitHub rated the flaw Medium severity with a CVSS v3.1 score of 5.9
- It was published on November 20, 2026 at 09:31 UTC
- It is fixed in
pydantic-aiandpydantic-ai-slimversions1.107.10and2.66.0 - Reloading serialized agent message history can let a tool result shaped like one of Pydantic AI's file types be reconstructed as that file type
Why it matters for AI builders
Pydantic AI is a widely used framework for building AI agents, and this is the kind of subtle agent memory bug that is easy to miss in code review. Third parties who control tool output data can trigger unintended file access, including downloads from local networks, S3 object reads using the application's own credentials, or file retrieval through the model provider. The issue requires that tool results include external data, that persisted history is reloaded, and that the model provider downloads or processes files. Certain UI adapters avoid the issue in their default configuration.
Fix and availability
Teams running Pydantic AI should upgrade to pydantic-ai or pydantic-ai-slim version 1.107.10 or 2.66.0, the releases GitHub confirms carry the fix.
Sources
- Pydantic AI tool-result deserialization SSRF advisory (GitHub Security Advisories, November 20, 2026, official)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.