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-48782: CWE-918: Server-Side Request Forgery (SSRF) in pydantic pydantic-ai

0
Medium
VulnerabilityCVE-2026-48782cvecve-2026-48782cwe-918
Published: Tue Jun 16 2026 (06/16/2026, 22:49:26 UTC)
Source: CVE Database V5
Vendor/Project: pydantic
Product: pydantic-ai

Description

CVE-2026-48782 is a Server-Side Request Forgery (SSRF) vulnerability in pydantic-ai, a Python agent framework for Generative AI applications. Versions 1.56.0 through 1.101.0, 2.0.0b1, and 2.0.0b2 are affected. The vulnerability allows bypassing the cloud-metadata blocklist by encoding metadata IP addresses using certain IPv6 transition forms that were not properly decoded by a previous fix. This can expose cloud IAM short-term credentials when the application opts into force_download='allow-local' and runs on networks routing these IPv6 transition forms. The issue has been fixed in version 2.0.0b3.

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.101.0=2.0.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: 06/16/2026, 23:31:10 UTC

Technical Analysis

This SSRF vulnerability arises because pydantic-ai's cloud-metadata blocklist can be bypassed via IPv6 transition address forms that were not decoded by the prior fix (CVE-2026-46678). Specifically, IPv4-compatible IPv6 (::a.b.c.d), NAT64 RFC 8215 local-use prefix (64:ff9b:1::/48), operator-chosen NAT64 prefixes, and ISATAP forms can be used to route requests to the underlying IPv4 metadata endpoint, exposing cloud IAM credentials. The vulnerability manifests when force_download='allow-local' is enabled, disabling the default block on private/internal IPs, and the network routes these IPv6 transition forms (e.g., NAT64-configured or ISATAP networks). Standard dual-stack cloud VMs or containers not routing these forms are not affected in practice. Deprecated IPv6 variants like IPv4-compatible and Teredo are addressed as defense-in-depth. This vulnerability is an incomplete fix of CVE-2026-46678 and has been resolved in pydantic-ai version 2.0.0b3.

Potential Impact

Successful exploitation can lead to exposure of cloud IAM short-term credentials by bypassing the cloud-metadata blocklist, potentially allowing unauthorized access to cloud resources. The impact is limited to environments where the application uses force_download='allow-local' and runs on networks routing affected IPv6 transition forms. There is no indication of integrity or availability impact. The CVSS v3.1 score is 6.8 (medium severity), reflecting network attack vector, high complexity, no privileges required, no user interaction, and high confidentiality impact.

Mitigation Recommendations

A fix is available in pydantic-ai version 2.0.0b3. Users should upgrade to this version or later to remediate the vulnerability. Until then, avoid enabling force_download='allow-local' on networks that route affected IPv6 transition forms. Patch status is not explicitly stated in the vendor advisory beyond the fix in 2.0.0b3, so verify with the vendor for the latest remediation guidance.

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-22T20:18:20.365Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a31d9030b89be68884780e3

Added to database: 6/16/2026, 11:15:15 PM

Last enriched: 6/16/2026, 11:31:10 PM

Last updated: 6/17/2026, 12:19:11 AM

Views: 5

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