Arbitrary file injection via download index misalignment
Published Nov 7, 2025 · Updated Nov 7, 2025
Input validation bypass in Vercel AI SDK 5.0.51 and 5.1.0-beta.8 allows remote attackers to inject arbitrary file content via mixed URLs. The downloadAssets function filters failed downloads before pairing remaining data with plannedDownloads by index, associating bytes from one URL with another. Applications using generateText() or streamText() on mixed supported and unsupported URLs without external validation allow URL-based trust checks to be bypassed.
Summary
What happened
Input validation bypass in Vercel AI SDK 5.0.51 and 5.1.0-beta.8 allows remote attackers to inject arbitrary file content via mixed URLs. The downloadAssets function filters failed downloads before pairing remaining data with plannedDownloads by index, associating bytes from one URL with another. Applications using generateText() or streamText() on mixed supported and unsupported URLs without external validation allow URL-based trust checks to be bypassed.
The record
- CVE
- CVE-2025-48985
- Published
- Nov 7, 2025
- Updated
- Nov 7, 2025
- Vendor
- Vercel
- Product
- AI SDK
- Classifications
- CWE-20, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Nov 7, 2025CVE publishedPublication date reported by the CVE source.
- Nov 7, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=5.0.51 <=5.0.51
- Affected versionversion=5.1.0-beta.8 <=5.1.0-beta.8
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo