@ai-sdk/provider-utils
5.0.83 · 20 Nov 2026Apache-2.076.4M / weekRepositoryHomepagenpmAtom feed
Upgrading @ai-sdk/provider-utils From 4.0.1 to 4.0.67
66 releases in betweennotes for 65
- ?
- changes to make
- 1
- advisory fixed
- 6+
- new
- 44+
- fixes
Counted from 65 of 66 release notes. Advisories are counted from the advisory database, in full.
Security
Fixes 1 advisory affecting 4.0.1
- @ai-sdk/provider-utils has an Uncontrolled Resource Consumption issuelow · GHSA-866g-f22w-33x8
- 4.0.57
mcp: Prevent SSRF in OAuth metadata discovery
- 4.0.36
Prevent prototype pollution when synchronously parsing provider JSON inputs and expose
secureJsonParsefrom provider-utils. - 4.0.29
Harden download URL SSRF guard against hostname and redirect bypasses
- 4.0.20
security: Validate redirect targets in download functions to prevent SSRF bypass
- 4.0.19
Add URL validation to
downloadBlobanddownloadto prevent blind SSRF attacks. Private/internal IP addresses, localhost, and non-HTTP protocols are now rejected before fetching.
Release by release
- Fixed
Fix validation of non-Zod Standard Schema results: a result that contains
issuesis now always treated as a failure, even when it also carries avalue. Previously a failing schema such as Valibot's throughtoStandardJsonSchema()could be reported as valid, so rejected input, including tool input, was accepted.
- Fixed
- Fixed
Require a DNS-pinned fetch for untrusted MCP OAuth discovery and metadata-derived token/registration URLs on server runtimes without a protected default transport. Preserve developer-configured endpoints and allow explicitly supplied fetch implementations that provide equivalent connect-time validation. Browser workers without a DOM follow the same explicit custom-fetch requirement.
- Fixed
- Fixed
Reject HTTPS-to-HTTP redirects in validated downloads before requesting the insecure target, including when it matches a configured trusted origin.
- Fixed
- New
Add
stringifyWithBigIntAndCyclesfor provider tool serialization that converts BigInt values to decimal strings and replaces ancestor cycles while preserving shared references andtoJSONbehavior. - Fixed
provider-utils: Support cross-realm Uint8Array and ArrayBuffer in binary type guards and base64 conversion
- Fixed
provider-utils: Decode base64 into a preallocated Uint8Array to avoid ~25x transient memory and long event-loop blocking on large files
- New
- Fixed
Use native Buffer base64 encoding when available. encoding a
Uint8Arraybacked by a detachedArrayBuffernow throws aTypeErrorin runtimes withBufferinstead of returning an empty string
- Fixed
- Fixed
Block
.internalhostnames in download URL validation. - Fixed
Encode provider-returned identifiers in follow-up request paths with a shared encodePathSegment helper.
- Fixed
- New
openai-compatible: Support URL-based image responses
- New
4.0.60nothing new or fixed in the note
26 internal lines (docs, tests, tooling) left out.
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.