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

Published Nov 20, 2026
·
Updated

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 forcedownload, 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.

Affected Software

2 affected components
pypi/pydantic-ai<1.107.10
pypi/pydantic-ai-slim<2.66.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pydantic-ai to a version that resolves this vulnerability.

    Fixed in 1.107.10
  2. Upgrade

    Upgrade pydantic-ai to a version that resolves this vulnerability.

    Fixed in 2.66.0
  3. Upgrade

    Upgrade pydantic-ai-slim to a version that resolves this vulnerability.

    Fixed in 1.107.10
  4. Upgrade

    Upgrade pydantic-ai-slim to a version that resolves this vulnerability.

    Fixed in 2.66.0

Event History

Nov 20, 2026
CVE Published
via MITRE·07:34 AM
Data Sourced
via MITRE·07:34 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:18 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

An application is affected only when third-party data can appear in tool results, the resulting message history is serialized and later reloaded, and the selected model/provider handles the reconstructed file in a relevant way. Relevant handling includes Pydantic AI downloading files for the model, honoring force_download, or a provider resolving non-HTTP file URLs or uploaded files.

2

What must an attacker control to exploit it?

The attacker needs control over data returned by a tool, such as a record returned by an MCP server or a function tool backed by an external system. They must cause that data to contain a JSON object matching the serialized shape of a Pydantic AI file type, which is then present in history that is later reloaded.

3

What impact can successful exploitation have?

The crafted result can cause the application to download a URL reachable on its local network. It can also cause the model provider to read an s3:// object or an uploaded file using the application's credentials.

4

Are client-submitted histories through the Vercel AI or AG-UI adapter affected by default?

No. History submitted by a client through the Vercel AI or AG-UI adapter in its default mode is not affected.

5

Which versions contain the fix?

The issue is fixed in pydantic-ai and pydantic-ai-slim versions 1.107.10 and 2.66.0.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203