fix(deps): update dependency ai to v5.0.52 [security] #2470
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.

This PR contains the following updates:
5.0.28->5.0.52GitHub Vulnerability Alerts
CVE-2025-48985
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.
Release Notes
vercel/ai (ai)
v5.0.52Patch Changes
c56822d: fix(ai): updateuiMessageChunkSchemato satisfy theUIMessageChunktype930399b: fix(ai): download files when intermediate file cannot be downloaded7ca78f1]v5.0.51Patch Changes
27645bb: ExportparseJsonEventStreamanduiMessageChunkSchemafrom "ai" package322901b]v5.0.50Patch Changes
c5f403a]v5.0.49Compare Source
Patch Changes
e304478]v5.0.48Compare Source
Patch Changes
4d3ff64]v5.0.47Compare Source
Patch Changes
c86e0f7]6bbae01]v5.0.46Compare Source
Patch Changes
c580fbd: Add safeValidateUIMessages utility to validate UI messages without throwing, returning a success/failure result object like Zod’s safeParsev5.0.45Compare Source
Patch Changes
76024fc: fix(ai): fix static tool call and result detection when dynamic is undefined93d8b60: fix(ai): do not filter zero-length text parts that have provider optionsd8eb31f: fix(ai): fix webp image detection from base64v5.0.44Compare Source
Patch Changes
f49f924]v5.0.43Compare Source
Patch Changes
0294b58: feat(ai): setai,@ai-sdk/provider-utils, and runtime inuser-agentheader0294b58]v5.0.42Compare Source
Patch Changes
de5c066: fix(ai): forwarded providerExecuted flag in validateUIMessagesv5.0.41Compare Source
Patch Changes
cd91e4b: fix(ai): use correct type for reasoning outputsv5.0.40Compare Source
Patch Changes
4ee3719]v5.0.39Compare Source
Patch Changes
a0a725f: feat (ai): export createGatewayv5.0.38Compare Source
Patch Changes
350a328]v5.0.37Compare Source
Patch Changes
d6785d7: feat (ai): add tool and agent helpersv5.0.36Compare Source
Patch Changes
ccc2ded: feat (ai): export gateway providerv5.0.35Compare Source
Patch Changes
99c946a: export missing typev5.0.34Compare Source
Patch Changes
034287f]dee1afe]v5.0.33Compare Source
Patch Changes
5d59a8c]v5.0.32Compare Source
Patch Changes
b6005cd]v5.0.31Compare Source
Patch Changes
99964ed]v5.0.30Compare Source
Patch Changes
7fcc6be: feat(ai): throw InvalidArgumentError when messages is not providedv5.0.29Compare Source
Patch Changes
e0e9449: feat(ui): sent isAbort, isDisconnect, isError in useChat onFinish callbackConfiguration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.