CVE-2025-48985Vercel Ai
Medium 5.3 No auth needed
Follow: this CVE · Vercel · Vercel Ai We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- —
- Auth required
- No
- Published
- Nov 7, 2025
- Updated
- Oct 7, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
What happens
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.
More details: https://vercel.com/changelog/cve-2025-48985-input-validation-bypass-on-ai-sdk
What to do
- Apply the vendor's security update for Ai.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | ai |
< 5.0.52 |
5.0.52 |
npm install ai@5.0.52 |
| npm | ai |
≥ 5.1.0-beta.0 < 5.1.0-beta.9 |
5.1.0-beta.9 |
npm install ai@5.1.0-beta.9 |
Per OSV / GitHub Advisories (GHSA-rwvc-j5jr-mgvh). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| vercel | ai | < 5.0.52 |
| vercel | ai | 5.1.0 |
| vercel | ai | 5.1.0 |
| vercel | ai | 5.1.0 |
| vercel | ai | 5.1.0 |
| vercel | ai | 5.1.0 |
| vercel | ai | 5.1.0 |
| vercel | ai | 5.1.0 |
| vercel | ai | 5.1.0 |
| vercel | ai | 5.1.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- vercel.com Vendor Advisory