fix(deps): upgrade ai to 5.0.52 to patch CVE-2025-48985 (filetype whitelist bypass)#156
Merged
sanjaychelliah merged 2 commits intomainfrom May 5, 2026
Merged
Conversation
…jr-mgvh) Agent-Logs-Url: https://github.com/Clarifai/examples/sessions/c1f96c5c-38aa-4a28-8656-b1c5c86a6a91 Co-authored-by: sanjaychelliah <65780631+sanjaychelliah@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update Vercel's AI SDK to fix filetype whitelists bypass vulnerability
fix(deps): upgrade May 5, 2026
ai to 5.0.52 to patch CVE-2025-48985 (filetype whitelist bypass)
sanjaychelliah
approved these changes
May 5, 2026
There was a problem hiding this comment.
Pull request overview
This PR upgrades the Node.js Vercel AI SDK example’s dependencies to patched versions to address CVE-2025-48985 / GHSA-rwvc-j5jr-mgvh in ai, which could allow bypassing filetype whitelists during file uploads.
Changes:
- Bump
aifrom^4.3.16to^5.0.52(patched version). - Bump
@ai-sdk/openai-compatiblefrom^0.2.14to^1.0.39to align with theai@5provider dependency chain.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -11,8 +11,8 @@ | |||
| "author": "", | |||
| "license": "ISC", | |||
| "dependencies": { | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CVE-2025-48985 / GHSA-rwvc-j5jr-mgvh: Vercel AI SDK allowed users to bypass filetype whitelists when uploading files. Fixed in
ai@5.0.52.Changes
ai:^4.3.16→^5.0.52— patched version@ai-sdk/openai-compatible:^0.2.14→^1.0.39— required companion bump; v0.x depends on@ai-sdk/provider@1.x, whileai@5.xrequires@ai-sdk/provider@2.x. All existing APIs (generateText,streamText,tool,createOpenAICompatible) remain available unchanged.Reachability
Not reachable (medium confidence). None of the example files use file upload APIs — only text-based
generateText/streamTextcalls are made. This update is primarily to clear the vulnerability scanner rather than address an active risk.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
www.npmjs.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt