Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-54249— VercelAIAdapter trusts client-controlled `providerMetadata` to construct `UploadedFile` — S3/GCS confused deputy via provider metadata injection

Quick assessment

Affected
pydantic pydantic-ai
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Pydantic pydantic-ai是Pydantic组织开源的一个用于构建生产级应用程序和工作流的生成式AI框架。 pydantic-ai 1.65.0至1.105.0版本和2.0.0b1至2.0.0b5版本存在服务端请求伪造漏洞,该漏洞源于UploadedFile引用未经验证,可能导致攻击者构造消息历史使服务器读取自身账户或其他租户的对象。

CVSS 6.8 · Medium EPSS 0.32% · P22

Possible ATT&CK Techniques 1 AI

T1530 · Data from Cloud Storage

Affected Version Matrix 4

VendorProduct Version RangeStatus
pydantic pydantic-ai >= 1.65.0, < 1.106.0 affected
>= 2.0.0b1, < 2.0.0b6 affected
pydantic pydantic-ai-slim >= 2.0.0b1, < 2.0.0b6 affected
>= 1.65.0, < 1.106.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-54249

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
VercelAIAdapter trusts client-controlled `providerMetadata` to construct `UploadedFile` — S3/GCS confused deputy via provider metadata injection
Source: CVE Program / CVE List V5
Vulnerability Description
Pydantic AI is a Python agent framework for building Generative AI applications. In versions 1.65.0 through 1.105.0, and 2.0.0b1 through 2.0.0b5, a client that submits message history to a Pydantic AI UI adapter (such as the Vercel AI adapter) can reference arbitrary files in the application's model-provider or cloud-storage account. While file URL parts are validated against a scheme allowlist, UploadedFile references — which point to a file by provider file ID or cloud-storage URI (e.g. s3://…, gs://…) — were forwarded without validation. Because the provider resolves an UploadedFile using the server-side identity (IAM role, service account, or provider API key) rather than the client's, an attacker can craft message history to make the server read objects from its own account or other tenants, given a referenceable identifier. Exploitation requires a valid file identifier, which is not always unguessable depending on how the application names objects. This issue has been fixed in versions 1.106.0 and 2.0.0b6.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
服务端请求伪造(SSRF)
Source: CVE Program / CVE List V5
Vulnerability Title
pydantic-ai 服务端请求伪造漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Pydantic pydantic-ai是Pydantic组织开源的一个用于构建生产级应用程序和工作流的生成式AI框架。 pydantic-ai 1.65.0至1.105.0版本和2.0.0b1至2.0.0b5版本存在服务端请求伪造漏洞,该漏洞源于UploadedFile引用未经验证,可能导致攻击者构造消息历史使服务器读取自身账户或其他租户的对象。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
pydantic pydantic-ai >= 1.65.0, < 1.106.0 -
pydantic pydantic-ai-slim >= 2.0.0b1, < 2.0.0b6 -

II. Public POCs for CVE-2026-54249

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-54249

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-54249 (1)

Same Patch Batch · pydantic · 2026-07-29 · 3 CVEs total

CVE-2026-46678 6.8 MEDIUM Pydantic AI: SSRF cloud-metadata blocklist bypass via IPv4-mapped IPv6 (Incomplete fix of
CVE-2026-65975 6.5 MEDIUM Pydantic AI AG-UI Adapter: A dangling client-submitted tool call can execute when a traili

IV. Related Vulnerabilities

V. Comments for CVE-2026-54249

No comments yet


Leave a comment