github vercel/ai ai@5.0.204

latest releases: @ai-sdk/xai@3.0.96, @ai-sdk/vue@3.0.207, @ai-sdk/voyage@1.0.7...
6 hours ago

Patch Changes

  • 9169261: fix(provider-utils): cancel response body on download rejection to prevent socket leak

    When a download was rejected early — because the Content-Length header exceeded the size limit, the response status was not ok, or a redirect resolved to a blocked URL — the fetch response body was left unconsumed and uncancelled. With WHATWG Fetch/undici this leaves the underlying TCP socket open instead of returning it to the connection pool, allowing an attacker-controlled origin to exhaust file descriptors and cause a denial of service. The body is now cancelled on all early-rejection paths in readResponseWithSizeLimit and download, and fetchWithValidatedRedirects cancels each redirect hop's body before following or rejecting the next hop.

  • Updated dependencies [dd9349d]

  • Updated dependencies [9169261]

    • @ai-sdk/gateway@2.0.103
    • @ai-sdk/provider-utils@3.0.27

Don't miss a new ai release

NewReleases is sending notifications on new releases.