ai
7.0.176 · 17 Nov 2026Apache-2.048.6M / weekRepositoryHomepagenpmAtom feed
Upgrading ai From 5.0.24 to 5.0.292
263 releases in betweennotes for 260
Reading releases, release notes and advisories…
- ?
- changes to make
- 1
- advisory fixed
- 19+
- new
- 119+
- fixes
Counted from 260 of 263 release notes. Advisories are counted from the advisory database, in full.
Security
Fixes 1 advisory affecting 5.0.24
- Vercel’s AI SDK's filetype whitelists can be bypassed when uploading fileslow · GHSA-rwvc-j5jr-mgvh
- 5.0.200
Harden download URL SSRF guard against hostname and redirect bypasses
- 5.0.200
Harden stream text processing and middleware against prototype pollution from stream part IDs.
- 5.0.198
Harden UI message stream processing against prototype pollution from chunk IDs.
- 5.0.181
mcp: Prevent prototype pollution by using secureJsonParse
- 5.0.149
security: Validate redirect targets in download functions to prevent SSRF bypass
- 5.0.146
Add URL validation to
downloadto prevent blind SSRF attacks. Private/internal IP addresses, localhost, and non-HTTP protocols are now rejected before fetching.
Release by release
5.0.292nothing new or fixed in the note
- Fixed
Reduce memory and CPU usage when validating UI messages with deeply nested provider metadata.
validateUIMessagesandsafeValidateUIMessagesvalidated JSON values inproviderMetadataandcallProviderMetadatawith a recursive union schema that needed several times the memory of the value. These values are now validated in a single pass and are no longer copied, except to remove__proto__keys.
- Fixed
- Fixed
Keep failed tool call error text consistent with the model's message history by default. Set
redactToolErrors: trueto replace it with the result ofonError. - Fixed
Prevent excessive memory and CPU usage when validating malformed UI messages.
validateUIMessagesandsafeValidateUIMessagesreported the issues of every part schema for every invalid part, so a small request with many malformed parts could exhaust memory. Each part is now validated against the schemas for its type only, validation stops at the first invalid message or part, and an invalid JSON value in provider metadata is reported as a single issue.
- Fixed
- Fixed
Fix excessive CPU usage when streaming long arrays with
streamObjectarray output. Parse and validate completed elements incrementally instead of repeatedly processing the entire accumulated array on every text chunk.
- Fixed
5.0.287 – 5.0.2882 releases, nothing new or fixed in the notes
- Fixed
Hide provider metadata from telemetry when recordOutputs is false
- Fixed
Preserve
toolChoice: 'none'when SDK tools are omitted or empty so providers can disable native tools configured through provider options.
- Fixed
- Fixed
ai: Support cross-realm Uint8Array and ArrayBuffer in DefaultGeneratedFile
- Fixed
ai: Handle cross-realm Uint8Array and ArrayBuffer in prompt data validation and conversion
- Fixed
5.0.282 – 5.0.2843 releases, nothing new or fixed in the notes
211 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.