Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. ai
  4. ›
  5. CVE-2025-48985

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

November 7, 2025 (updated December 2, 2025)

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 allowlists when uploading files. All users are encouraged to upgrade.

References

  • github.com/advisories/GHSA-rwvc-j5jr-mgvh
  • github.com/vercel/ai
  • github.com/vercel/ai/commit/930399bb9839a8baf3d349614106d78268775eed
  • github.com/vercel/ai/issues/8881
  • nvd.nist.gov/vuln/detail/CVE-2025-48985
  • vercel.com/changelog/cve-2025-48985-input-validation-bypass-on-ai-sdk

Code Behaviors & Features

Detect and mitigate CVE-2025-48985 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 5.0.52, all versions starting from 5.1.0-beta.0 before 5.1.0-beta.9

Fixed versions

  • 5.0.52
  • 5.1.0-beta.9

Solution

Upgrade to versions 5.0.52, 5.1.0-beta.9 or above.

Impact 3.7 LOW

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-682: Incorrect Calculation

Source file

npm/ai/CVE-2025-48985.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:20 +0000.