@ai-sdk/[email protected]
@ai-sdk/[email protected]
ai
Release Notes
Patch Changes
6e8917f: fix(prodia): validate user-supplied image URLs before fetching (SSRF)
The Prodia video model's
resolveVideoFileDatafetched a user-suppliedimageURL directly withfetch(), bypassing the SDK's SSRF guard. An attacker who could supply the image URL could make the server request internal endpoints (e.g. cloud metadata) and have the response uploaded to Prodia's API. The URL is now downloaded viadownloadBlob, which routes throughvalidateDownloadUrland rejects private/internal addresses, matching the pattern used by other providers.Updated dependencies [bae5e2b]
- @ai-sdk/[email protected]