Home / pydantic / pydantic-ai / CVE-2026-133505
CVE-2026-133505: is it exploited, and which versions of pydantic-ai are affected and fixed?
CVE-2026-133505 is a type confusion vulnerability in pydantic-ai. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 19:09 UTC). Affected: pydantic-ai from 1.50.0 through 1.107.9, pydantic-ai from 2.0.0b1 through 2.65.0, pydantic-ai-slim from 1.50.0 through 1.107.9 and 1 more (CVE record by Pydantic). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Medium (5.9, CVSS 3.1, from Pydantic).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 19:09 UTC, CVE record November 20, 2026, 17:21 UTC and NVD November 23, 2026, 16:08 UTC.
What is 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.
From the CVE record by Pydantic, last updated November 20, 2026, 17:18 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| pydantic | pydantic-ai | from 1.50.0 through 1.107.9 | |
| pydantic | pydantic-ai | from 2.0.0b1 through 2.65.0 | |
| pydantic | pydantic-ai-slim | from 1.50.0 through 1.107.9 | |
| pydantic | pydantic-ai-slim | from 2.0.0b1 through 2.65.0 |
As the CVE record by Pydantic states it, last updated November 20, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-133505?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.9 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N | Pydantic |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-133505 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, November 20, 2026)
- EPSS
- 0.70% probability of exploitation activity in the next 30 days, percentile 54.6 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-4cj4-hgwf-4hc4 vendor-advisory
- https://pydantic.dev/docs/ai/ui/overview/#trust-model-for-client-submitted-messages
When was it published, and where is the official record?
- Reserved
- November 19, 2026
- Published
- November 20, 2026, 07:34 UTC
- CVE record updated
- November 20, 2026, 17:18 UTC by Pydantic
- NVD
- Awaiting Analysis, last modified November 23, 2026, 15:41 UTC
- Last checked
- CVE list November 20, 2026, 17:21 UTC; NVD November 23, 2026, 16:08 UTC; KEV December 3, 2026, 19:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect pydantic-ai?
- Oct 8, 2026CVE-2026-107295 pydantic-ai: cross-site request forgery (CSRF)
- Oct 8, 2026CVE-2026-107294 pydantic-ai: denial of service (uncontrolled resource consumption)
- Oct 8, 2026CVE-2026-107293 pydantic-ai: improper Removal of Sensitive Information Before Storage or Transfer
- Oct 8, 2026CVE-2026-107292 pydantic-ai: origin not validated
- Oct 8, 2026CVE-2026-107291 pydantic-ai: improper Removal of Sensitive Information Before Storage or Transfer
- Oct 8, 2026CVE-2026-107290 pydantic-ai: regular expression denial of service (ReDoS)
- Oct 8, 2026CVE-2026-107289 pydantic-ai: server-side request forgery (SSRF)
- Oct 8, 2026CVE-2026-107288 pydantic-ai: server-side request forgery (SSRF)
Questions about CVE-2026-133505
Is CVE-2026-133505 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 19:09 UTC. FIRST's EPSS gives it a 0.70% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of pydantic-ai are affected by CVE-2026-133505?
pydantic-ai from 1.50.0 through 1.107.9, pydantic-ai from 2.0.0b1 through 2.65.0, pydantic-ai-slim from 1.50.0 through 1.107.9 and pydantic-ai-slim from 2.0.0b1 through 2.65.0, per the CVE record by Pydantic. The tables above give every range the sources list.
Which version fixes CVE-2026-133505?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2026-133505?
Medium (5.9, CVSS 3.1, from Pydantic). The severity table above shows each score with its source.
Where is the official record of CVE-2026-133505?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.