CVE-2026-46678: CWE-918: Server-Side Request Forgery (SSRF) in pydantic pydantic-ai
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.
AI Analysis
Technical Summary
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.
CVE-2026-46678: CWE-918: Server-Side Request Forgery (SSRF) in pydantic 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
Affected software
pydantic
pydantic-ai
pydantic
pydantic-ai-slim
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.