@ai-sdk/provider-utils
5.0.83 · 20 Nov 2026Apache-2.076.4M / weekRepositoryHomepagenpmAtom feed
4.0.67 is the newest release of 4.x.
In short
1 fixed
Security
1 advisory affects 4.0.15; 4.0.33 fixes them
- Low@ai-sdk/provider-utils has an Uncontrolled Resource Consumption issueGHSA-866g-f22w-33x8 · 18 May 2026Fixed in 4.0.33
Release note
Patch Changes
security: prevent unbounded memory growth in download functions
The
download()anddownloadBlob()functions now enforce a default 2 GiB size limit when downloading from user-provided URLs. Downloads that exceed this limit are aborted with aDownloadErrorinstead of consuming unbounded memory and crashing the process. TheabortSignalparameter is now passed through tofetch()in all download call sites.Added
downloadoption totranscribe()andexperimental_generateVideo()for providing a custom download function. Use the newcreateDownload({ maxBytes })factory to configure download size limits.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.