Browse / AI Framework and Platform Flaws / CVE-2025-48985
Vercel’s AI SDK's filetype whitelists can be bypassed when uploading files
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Other weaknesses
- Affected
- ai (npm)
- Gets past
- Input filter or sanitiser
- CVSS
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
- EPSS
- 0.3% chance of exploitation in 30 days
How it works, in short
The AI SDK's file upload type allowlist can be circumvented, letting files of disallowed types be accepted. (Our summary, written by a model. The source text is below.)
Details
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
- https://nvd.nist.gov/vuln/detail/CVE-2025-48985
- https://github.com/vercel/ai/issues/8881
- https://github.com/vercel/ai/commit/930399bb9839a8baf3d349614106d78268775eed
- https://github.com/vercel/ai
- https://vercel.com/changelog/cve-2025-48985-input-validation-bypass-on-ai-sdk
Source: GitHub Advisory Database, used under CC BY 4.0.