CVE-2025-48985
JavaScript vulnerability analysis and mitigation

Overview

A low-severity security vulnerability (CVE-2025-48985) was discovered in Vercel's AI SDK. The vulnerability affects versions prior to 5.0.52, 5.1.0-beta.9, and 6.0.0-beta, allowing users to bypass filetype whitelists when uploading files. The issue was discovered and disclosed on November 6, 2025 (Vercel Changelog).

Technical details

The vulnerability exists in the convert-to-language-model-prompt.ts file within the prompt conversion pipeline. The issue occurs due to improper URL-to-data mapping that allows attackers to substitute arbitrary downloaded bytes for different supported URLs within the same prompt. The vulnerability has a CVSS v3.1 score of 3.7 (Low) with the vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N. The core issue stems from a filtering operation that removes null entries for supported URLs, causing index misalignment between the downloadedFiles array and the original plannedDownloads array (Miggo).

Impact

When processing mixed supported and unsupported URLs, the vulnerability allows bytes from an unsupported URL to be mapped to a supported URL slot, enabling attackers to inject arbitrary content while bypassing URL-based trust and content validation mechanisms. This affects most methods that accept images or files as inputs, specifically the generateText() and streamText() functions, unless explicit data validation was implemented outside of the SDK (Vercel Changelog).

Mitigation and workarounds

The vulnerability has been fixed in versions 5.0.52, 5.1.0-beta.9, and 6.0.0-beta. The resolution involves mapping files before filtering out empty ones to retain the correct index. As a workaround, users can implement custom filetype validation logic outside of the SDK. All users are encouraged to upgrade to the latest version (Vercel Changelog).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65108CRITICAL10
  • JavaScriptJavaScript
  • md-to-pdf
NoYesNov 21, 2025
CVE-2025-64767CRITICAL9.1
  • JavaScriptJavaScript
  • @hpke/core
NoYesNov 21, 2025
CVE-2025-64755HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesNov 21, 2025
CVE-2025-64762HIGH8
  • JavaScriptJavaScript
  • @workos-inc/authkit-nextjs
NoYesNov 21, 2025
CVE-2025-65944MEDIUM5.1
  • JavaScriptJavaScript
  • @sentry/nestjs
NoYesNov 24, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management