Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-46678: CWE-918: Server-Side Request Forgery (SSRF) in pydantic pydantic-ai

0
Medium
VulnerabilityCVE-2026-46678cvecve-2026-46678cwe-918
Published: 07/29/2026 (07/29/2026, 20:16:45 UTC)
Source: CVE Database V5
Vendor/Project: pydantic
Product: pydantic-ai

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.

CVSS v3.1

Score 6.8medium

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N

Affected software

pydantic-ai
pkg:pypi/pydantic-ai
Affected versions
>=1.56.0 <1.99.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/29/2026, 20:39:02 UTC

Technical Analysis

Pydantic AI versions 1.56.0 through 1.98.0 contain an SSRF vulnerability (CWE-918) when an application opts a URL into force_download='allow-local', disabling the default block on private/internal IPs. This allows attackers to bypass the cloud-metadata IP blocklist by encoding the metadata IP in IPv6 transition forms such as IPv4-mapped IPv6, 6to4, or NAT64. As a result, cloud IAM short-term credentials may be exposed on dual-stack or translated networks. This vulnerability is a bypass of the previous fix for CVE-2026-25580, which did not account for IPv6-encoded metadata IPs. Only applications explicitly opting into this setting on URLs influenced by untrusted input are affected. Bundled integrations and developer-controlled URLs are not vulnerable. The issue has been fixed in pydantic-ai version 1.99.0.

Potential Impact

An attacker can exploit this SSRF vulnerability to bypass cloud metadata IP blocklists and potentially retrieve cloud IAM short-term credentials. This exposure could lead to unauthorized access to cloud resources. The vulnerability requires specific application configuration (force_download='allow-local' on untrusted URLs) and does not affect default or typical usage. There is no indication of known exploits in the wild.

Mitigation Recommendations

A fix is available in pydantic-ai version 1.99.0. Users should upgrade to version 1.99.0 or later to remediate this vulnerability. Applications should avoid setting force_download='allow-local' on URLs influenced by untrusted input. Bundled integrations and developer-controlled URL usage are not affected and require no action.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-05-15T21:46:51.547Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a6a61149c2644c7f8ff97db

Added to database: 07/29/2026, 20:22:44 UTC

Last enriched: 07/29/2026, 20:39:02 UTC

Last updated: 07/29/2026, 21:07:49 UTC

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses