CVE-2026-46678 Details
Description
Pydantic AI is a Python agent framework for building Generative AI applications. In versions 1.56.0 through 1.98.0, when an application opts a URL into force_download='allow-local' (disabling the default block on private/internal IPs), the cloud-metadata blocklist could be bypassed by encoding the metadata IP in an IPv6 transition form (IPv4-mapped IPv6, 6to4, or NAT64), exposing cloud IAM short-term credentials on dual-stack or translated networks. This is an incomplete fix of GHSA-2jrp-274c-jhv3 / CVE-2026-25580, whose remediation did not hold for IPv6-encoded forms of the metadata IPs. An application is affected only if it explicitly opts a FileUrl (ImageUrl, AudioUrl, VideoUrl, DocumentUrl) into force_download='allow-local' on a URL influenced by untrusted input; it is not affected when using bundled integrations to ingest user input (Agent.to_web / clai web, VercelAIAdapter, AGUIAdapter / Agent.to_ag_ui), since they do not propagate force_download from external data, nor when downloading only from developer-controlled URLs. This issue has been fixed in version 1.99.0.
A server-side request forgery (SSRF) vulnerability has been identified in Pydantic AI versions 1.56.0 prior to 1.99.0. This issue arises when an application opts to allow local file downloads from URLs that may be influenced by untrusted input, bypassing the framework's cloud-metadata blocklist. The vulnerability can be exploited by encoding metadata IP addresses in certain IPv6 transition forms, which are then routed to the underlying IPv4 endpoints. This exposure can lead to unauthorized access to cloud IAM short-term credentials, particularly on dual-stack or translated networks.
Users can upgrade to Pydantic AI version 1.99.0 or later, where this vulnerability has been fixed. For applications still using unpatched versions, it is recommended to avoid setting 'force_download' to 'allow-local' on URLs that could be affected by untrusted input. If it is necessary to do so, validate the hostname against a custom metadata blocklist, including IPv6-encoded forms, before creating the 'FileUrl'.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 30, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/pydantic/pydantic-ai/releases/tag/v1.99.0 | [email protected] | ProductRelease Notes |
| https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-cqp8-fcvh-x7r3 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| pydantic pydantic ai | >= 1.56.0, < 1.99.0 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | Initial Analysis | [email protected] |
| Jul 30, 2026 | CVE Modified | CISA-ADP |
| Jul 29, 2026 | New CVE Received | [email protected] |