Pydantic AI rebuilds tool results as files when history is reloaded
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Deferred Red Hat: fix deferred
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-918 and the CVSS impact.
Summary
Versions 1.50.0 through 1.107.9 and 2.0.0b1 through 2.65.0 of pydantic-ai and pydantic-ai-slim rebuild tool results shaped like a file as that file when message history is reloaded. A third party who controls tool return data can make the application fetch a local network URL or make the model provider read an s3:// object or uploaded file with the application's credentials. It applies when stored or durable history is reloaded with a model that downloads files or resolves non-HTTP file URLs.
Written with Claude Haiku 5.5 from the sources below · 2026-11-20
Description from the CNA
When message history is serialized and loaded again, a tool result that contains a JSON object in the serialized shape of one of Pydantic AI's file types is rebuilt as that file. A third party who controls data a tool returns, such as a record that an MCP server or a function tool returns from an external system, can use this to make the application download a URL on its local network, or make the model provider read an s3:// object or uploaded file with the application's credentials. Applications are affected when tool results can contain third-party data, message history containing those results is serialized and loaded again (stored history, history a UI adapter holds on the server, or Temporal, DBOS or Prefect durable execution), and the model is one Pydantic AI downloads files for, one that honors force_download, or one whose provider resolves non-HTTP file URLs or uploaded files. History that a client submits through the Vercel AI or AG-UI adapter in the default mode is not affected. The issue is fixed in pydantic-ai and pydantic-ai-slim 1.107.10 and 2.66.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| pydantic | pydantic-ai | 1.50.0 – 1.107.9 | — | No fix listed | CNA |
| pydantic | pydantic-ai | 2.0.0b1 – 2.65.0 | — | No fix listed | CNA |
| pydantic | pydantic-ai-slim | 1.50.0 – 1.107.9 | — | No fix listed | CNA |
| pydantic | pydantic-ai-slim | 2.0.0b1 – 2.65.0 | — | No fix listed | CNA |
- pydantic-ai Vendorpydantic Affected 1.50.0 – 1.107.9 Fixed in — No fix listed CNA
- pydantic-ai Vendorpydantic Affected 2.0.0b1 – 2.65.0 Fixed in — No fix listed CNA
- pydantic-ai-slim Vendorpydantic Affected 1.50.0 – 1.107.9 Fixed in — No fix listed CNA
- pydantic-ai-slim Vendorpydantic Affected 2.0.0b1 – 2.65.0 Fixed in — No fix listed CNA
Remediation
Upgrade pydantic-ai and pydantic-ai-slim to 1.107.10 for the 1.x line or 2.66.0 for the 2.x line. Red Hat lists Exploit Intelligence, Lightspeed Core and Red Hat Enterprise Linux AI (RHEL AI) 3 as affected without a fix, and Red Hat has no plan available for them.
Written with Claude Haiku 5.5 from the sources below · 2026-11-20
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Exploit Intelligence | Affected | No fix yet: Fix deferred |
| Lightspeed Core | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux AI (RHEL AI) 3 | Affected | No fix yet: Fix deferred |
Timeline
- 2026-11-20 Threatist record created from CVE-2026-133505
- 2026-11-20 Alias added: GHSA-jvv4-fh7q-4c38
- 2026-11-20 Affected versions changed · Red Hat
- 2026-11-20 CVSS score added · Red Hat
- 2026-11-20 CISA SSVC decision points changed
- 2026-11-21 EPSS moved to the 50th–90th percentile
- 2026-11-25 EPSS moved to the below the 50th percentile
References
More pydantic vulnerabilities
- TI-2024-03518 Regular expression denial of service in Pydantic < 2.4.0 CVSS 3.1HIGH 7.5
- TI-2026-57990 HTTPX2: Multipart part header injection via unvalidated file Content-Type and custom headers CVSS 3.1MEDIUM 5.3
- TI-2026-41916 Path traversal in pydantic-settings CVSS 3.1MEDIUM 5.3
- TI-2026-20687 Pydantic AI Affected by Server-Side Request Forgery (SSRF) in URL Download Handling CVSS 3.1HIGH 8.6
- TI-2026-69551 Pydantic AI keeps concurrency slots after streams end early CVSS 3.1HIGH 7.5
- TI-2026-57993 HTTPX2: Streaming response decompression does not bound peak memory (decompression amplification) CVSS 3.1HIGH 7.5
Sources
- CVE-2026-133505 · CVE Program
- CVE-2026-133505 · NVD
- FIRST EPSS
- GHSA-jvv4-fh7q-4c38 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-133505 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences