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

- Severity: Low 3.7 (CVSS:3.1, scored by hackerone) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 22% of CVEs (2026-12-01)
- Published: 2025-11-07T00:43:28.027Z
- Modified: 2026-10-07T21:10:00.200Z
- Also known as: GHSA-rwvc-j5jr-mgvh
- Weaknesses: CWE-20, CWE-682
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: hackerone

## Description

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

(As written by CVE List.)

## Affected

- Vercel AI SDK: from 5.0.51 up to 5.0.51; from 5.1.0-beta.8 up to 5.1.0-beta.8 (not affected: from 6.0.0-beta.* before 6.0.0-beta.*; from 5.1.0-beta.9 before 5.1.0-beta.9; from 5.0.52 before 5.0.52)
- ai (npm): before 5.0.52; from 5.1.0-beta.0 before 5.1.0-beta.9
- vercel ai: before 5.0.52; 5.1.0

## Every score

- hackerone: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/vercel/ai/commit/930399bb9839a8baf3d349614106d78268775eed> (patch, web)
- <https://vercel.com/changelog/cve-2025-48985-input-validation-bypass-on-ai-sdk> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-48985> (advisory)
- <https://github.com/vercel/ai/issues/8881> (web)
- <https://github.com/vercel/ai> (package)

## Sources

- CVE List: [CVE-2025-48985](https://www.cve.org/CVERecord?id=CVE-2025-48985), CVE Terms of Use, modified 2025-12-01
- GitHub Advisory Database: [GHSA-rwvc-j5jr-mgvh](https://github.com/advisories/GHSA-rwvc-j5jr-mgvh), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-48985](https://nvd.nist.gov/vuln/detail/CVE-2025-48985), Public domain, modified 2026-10-07

---

Page: https://cve.day/CVE-2025-48985 · Whole record: https://cve.day/CVE-2025-48985.json · Rebuilt by cve.day 2026-11-25T22:59:07.325Z
