Read the docs

Pydantic AI rebuilds tool results as files when history is reloaded

Priority LOW 27CWE-843Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00423 28th percentileScored 2026-11-30
Fix Deferred Red Hat: fix deferred

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

VendorProductAffected versionsFixed inStatusSource
pydanticpydantic-ai1.50.0 – 1.107.9—No fix listedCNA
pydanticpydantic-ai2.0.0b1 – 2.65.0—No fix listedCNA
pydanticpydantic-ai-slim1.50.0 – 1.107.9—No fix listedCNA
pydanticpydantic-ai-slim2.0.0b1 – 2.65.0—No fix listedCNA
  • 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 →

ProductStatusPlan or fix
Exploit IntelligenceAffectedNo fix yet: Fix deferred
Lightspeed CoreAffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3AffectedNo fix yet: Fix deferred

Timeline

  1. 2026-11-20 Threatist record created from CVE-2026-133505
  2. 2026-11-20 Alias added: GHSA-jvv4-fh7q-4c38
  3. 2026-11-20 Affected versions changed · Red Hat
  4. 2026-11-20 CVSS score added · Red Hat
  5. 2026-11-20 CISA SSVC decision points changed
  6. 2026-11-21 EPSS moved to the 50th–90th percentile
  7. 2026-11-25 EPSS moved to the below the 50th percentile

References

  • 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
See all 35 →

Sources