low3.7
CVE-2025-48985
Vercel’s AI SDK's filetype whitelists can be bypassed when uploading files
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | ai | < 5.0.52 | 5.0.52 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Vercel | Ai | before 5.0.52 Version 5.1.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/vercel/ai/commit/930399bb9839a8baf3d349614106d78268775eed
- https://vercel.com/changelog/cve-2025-48985-input-validation-bypass-on-ai-sdk
- https://github.com/advisories/GHSA-rwvc-j5jr-mgvh
- https://nvd.nist.gov/vuln/detail/CVE-2025-48985
- https://github.com/vercel/ai/issues/8881