@ai-sdk/provider-utils
5.0.83 · 20 Nov 2026Apache-2.076.4M / weekRepositoryHomepagenpmAtom feed
Upgrading @ai-sdk/provider-utils From 3.0.40 to 3.0.46
6 releases in betweenevery note read
Security
- 3.0.41
mcp: Prevent SSRF in OAuth metadata discovery
Release by release
- 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
Validate response-supplied Black Forest Labs polling and image URLs, including redirects, to block requests to private destinations outside the configured provider origin. Preserve self-hosted endpoints and withhold credentials from foreign origins and cross-origin redirects.
- 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
- Security
mcp: Prevent SSRF in OAuth metadata discovery
- Fixed
Keep default Node.js downloads protected by DNS validation and connection pinning when frameworks or instrumentation wrap global fetch before or after the SDK loads.
- Fixed
provider-utils: Make lazy Undici import visible to deployment tracers
- Security
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.