CVE-2026-133505
CVE-2026-133505 — Tool result data shaped like a file is rebuilt as a file download or provider file reference when message history is reloaded
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.
Published Updated Sources: NVD, pydantic (CNA), GitHub, SOCRadar CTI
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
0%
ahead of 0% of scored CVEs
CVSS base
5.9
medium
Remediation
The vendor's own words where we have them.
Upgrade Pydantic-ai to a fixed release. Apply vendor patches per advisory and restrict external exposure of the affected component until patched.
First 24 hours
Ordered from the record's own fields — exposure first, because you cannot patch what you have not found.
- Identify exposed assets running affected vendor/product/version combinations.
- Prioritize based on EPSS, PoC availability, and external exposure.
- Search available logs for exploit probes, errors, authentication anomalies, or suspicious child processes matching the vulnerability class.
Affected scope
Vendor, product and version as the advisories word them.
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Pydantic | pydantic-ai | 1.50.0 to <= 1.107.9 | Vulnerable |
| Pydantic | pydantic-ai | 2.0.0b1 to <= 2.65.0 | Vulnerable |
| Pydantic | pydantic-ai-slim | 1.50.0 to <= 1.107.9 | Vulnerable |
| Pydantic | pydantic-ai-slim | 2.0.0b1 to <= 2.65.0 | Vulnerable |
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Availability
None
Confidentiality
High
Integrity
None
Scope
Unchanged
Attack Complexity
High
Attack Vector
Network
Privileges Req
None
User Interaction
None
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 5.9 | CVSS 3.1 | medium | 2.2 | 3.6 | CNA, pydantic (CNA) |
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
What this weakness leads to
MITRE's own consequences and mitigations for the weakness class — the authority's wording, not guidance derived from the CVSS vector.
CWE-918 · Server-Side Request Forgery (SSRF)
- Read Application Data
- Execute Unauthorized Code or Commands::
CWE-843 · Access of Resource Using Incompatible Type ('Type Confusion')
- Read Memory
- Modify Memory
- Execute Unauthorized Code or Commands
- DoS: Crash, Exit, or Restart
Weakness & attack patterns
- CWE-843Type Confusion
- CWE-918Server-Side Request Forgery (SSRF)
Inferred from the weakness class — not observed against this CVE.
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching //.
- Prioritize edge telemetry for network-reachable Pydantic-ai, Pydantic-ai-slim.
Timeline
What happened to this CVE, newest first — with the readings a source repeats on a schedule counted underneath rather than listed.
- 2026
Added · CVSS 3.1 5.9 (AV:N)
Nov 20, 2026 · NVD
Initial · CVE published
Nov 20, 2026 · NVD
CVE published by MITRE.
Nov 20, 2026 · SOCRadar CTI
Source activity
Readings a source repeats on a schedule, counted rather than listed.
- 1×2 times mentioned on 1 Telegram channelsNov 20, 2026 · SOCRadar CTI
References
2 on the record
- github.com/pydantic/pydantic-ai/security/advisories/GHSA-4cj4-hgwf-4hc4
Exploit, Third Party Advisory, NIST
- pydantic.dev/docs/ai/ui/overview/#trust-model-for-client-submitted-messages
Vendor Advisory
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-83548 SonicWall SMA1000 Appliances Server-Side Request Forgery VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2026-49869 Kestra: Unauthenticated Remote Code Execution via Authentication Bypass in `AuthenticationFilter`CVSS 10.0 · CISA KEV
- CVE-2026-15409 SonicWall SMA1000 Appliances Server-Side Request Forgery VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2021-34473 Microsoft Exchange Server Remote Code Execution VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2012-0507 Oracle Java SE Runtime Environment (JRE) Arbitrary Code Execution VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2025-10585 Google Chromium V8 Type Confusion VulnerabilityCVSS 9.8 · CISA KEV
Elsewhere on this site
- Pydanticevery CVE for this vendor
- Memory Corruptionsame class
- CWE-843other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record1
What should defenders know first?
CVE-2026-133505 is Tool result data shaped like a file is rebuilt as a file download or provider file reference when message history is reloaded, a medium vulnerability affecting Pydantic-ai, Pydantic-ai-slim from Pydantic. The current evidence does not list it in CISA KEV, and the exploit status is: Active exploitation is not confirmed from current sources for CVE-2026-133505. Public exploit evidence is: A public PoC is not confirmed from current sources for CVE-2026-133505. The affected-version evidence is listed in the key facts and affected products tables. Defenders should first verify whether exposed or business-critical assets run those versions, then apply vendor patches or mitigations, restrict reachable attack surface, and preserve logs for detection review. CVSS 5.9 describes technical severity, while EPSS 0% helps estimate near-term exploit likelihood; neither replaces asset context. Unknown fields should remain explicit in tickets, and threat actor, IOC, victimology, or payload claims should not be added unless a cited source supports them. Monitor CISA KEV, vendor advisories, NVD changes, public PoC repositories, and internal telemetry for update triggers.