Free AI Safety Workshop — in collaboration with explainx.aiSave your seat
AgentbeamBeta
AI agent vulnerability · Vercel AI SDK

CVE-2025-48985: Vercel’s AI SDK's filetype whitelists can be bypassed when uploading files

lowCVSS 3.1 3.7GHSA-rwvc-j5jr-mgvh

A vulnerability in Vercel’s AI SDK has been fixed in versions 5.0.52, 5.1.0-beta.9, and 6.0.0-beta. This issue may have allowed users to bypass filetype whitelists when uploading files. All users are encouraged to upgrade.

Published Nov 7, 2025 · Updated Dec 2, 2025

Affected packages

ai

Ecosystem
npm
Affected
< 5.0.52
Fixed in
5.0.52
Check
npm ls ai

ai

Ecosystem
npm
Affected
>= 5.1.0-beta.0, < 5.1.0-beta.9
Fixed in
5.1.0-beta.9
Check
npm ls ai

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

A vulnerability in Vercel’s AI SDK has been fixed in versions 5.0.52, 5.1.0-beta.9, and 6.0.0-beta. This issue may have allowed users to bypass filetype whitelists when uploading files. All users are encouraged to upgrade.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology