CVE-2025-48985: Vercel’s AI SDK's filetype whitelists can be bypassed when uploading files
Affects aiSource GCVE Database
Not known to be exploited · CVSS 3.7 Low : upgrade to 5.0.52 when convenient.
Data as of 21 Nov 2026, 03:48 UTC
Thin evidence
One scorer or none| CNA (hackerone) | CVSS 3.1 | 3.7 |
|---|
- Patch
- Available – fixed in 5.0.52, 5.1.0-beta.9
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 7 Nov 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 20 Nov 2026.
What to do
Upgrade ai to 5.0.52; ai to 5.1.0-beta.9.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmai | Affected
| Fixed in
|
| npmai | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and users should upgrade to version 5.0.52, 5.1.0-beta.9, or later to remediate this vulnerability. No additional mitigation steps are indicated.
Description
A vulnerability in Vercel’s AI SDK allowed bypassing of filetype whitelists during file uploads. This flaw was addressed in versions 5.0.52, 5.1.0-beta.9, and later. Users running affected versions are advised to upgrade to mitigate the risk.
References
- nvd.nist.gov/vuln/detail/CVE-2025-48985 (opens in a new tab)
- github.com/vercel/ai/issues/8881 (opens in a new tab)
- github.com/vercel/ai/commit/930399bb9839a8baf3d349614106d78268775eed (opens in a new tab)
- github.com/vercel/ai (opens in a new tab)
- vercel.com/changelog/cve-2025-48985-input-validation-bypass-on-ai-sdk (opens in a new tab)