Skip to main content
EPSS 0.4%top 65%

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

CVE-2026-46678 is a Server-Side Request Forgery (SSRF) vulnerability in pydantic-ai versions 1.56.0 through 1.98.0. It allows bypassing the cloud-metadata blocklist by encoding metadata IP addresses in IPv6 transition forms when force_download='allow-local' is enabled on URLs influenced by untrusted input. This can expose cloud IAM short-term credentials on dual-stack or translated networks. The issue is a partial bypass of a previous fix (CVE-2026-25580) and is fixed in version 1.99.0. Applications not explicitly opting into force_download='allow-local' or using bundled integrations are not affected.

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

pydantic-ai

Affected versions
>=1.56.0 <1.99.0

pydantic

pydantic-ai-slim

Affected versions
>=1.56.0 <1.99.0
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: 08/06/2026, 17:53:03 UTC

Technical Analysis

Pydantic AI, a Python framework for Generative AI applications, contains an SSRF vulnerability (CVE-2026-46678) in versions >=1.56.0 and <1.99.0. When an application explicitly sets force_download='allow-local' on a FileUrl-type parameter derived from untrusted input, the cloud-metadata IP blocklist can be bypassed by encoding the metadata IP in IPv6 transition formats such as IPv4-mapped IPv6, 6to4, or NAT64. This bypass exposes cloud IAM short-term credentials on networks supporting dual-stack or address translation. The vulnerability is an incomplete fix of CVE-2026-25580, which did not account for IPv6-encoded metadata IPs. Bundled integrations that do not propagate force_download from external data or that download only from developer-controlled URLs are not affected. The issue is resolved in pydantic-ai version 1.99.0.

Potential Impact

Successful exploitation can lead to exposure of cloud IAM short-term credentials by bypassing the cloud-metadata IP blocklist through SSRF attacks using IPv6-encoded metadata IP addresses. This could allow an attacker to access sensitive cloud metadata services, potentially compromising cloud resource security. The vulnerability requires that the application explicitly opts into force_download='allow-local' on URLs influenced by untrusted input, limiting the scope of impact.

Mitigation Recommendations

Upgrade pydantic-ai to version 1.99.0 or later, where this vulnerability is fixed. Applications that do not explicitly enable force_download='allow-local' on URLs influenced by untrusted input are not affected. Bundled integrations that do not propagate force_download from external data or only download from developer-controlled URLs are also not vulnerable. Review application configurations to avoid enabling force_download='allow-local' on untrusted URLs.

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

Threat ID: 6a6a61149c2644c7f8ff97db

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

Last enriched: 08/06/2026, 17:53:03 UTC

Last updated: 09/12/2026, 10:26:34 UTC

Views: 74

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