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 learningUpgrade bandit to version 1.11.0 or higher.
bandit is a HTTP server for Plug and WebSock apps.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling through the Bandit.WebSocket.PerMessageDeflate.inflate process in the WebSocket compression path. An attacker can exhaust server resources by sending a highly compressed WebSocket frame that expands far beyond its compressed size.
The vulnerable inflate path in Bandit.WebSocket.Connection and Bandit.WebSocket.PerMessageDeflate accepts compressed message data and decompresses it without bounding the expansion ratio, allowing a small payload to trigger excessive memory and CPU consumption during WebSocket message handling. This can stall or crash the server process and disrupt WebSocket connections for legitimate users.
Notes
compress: false, so they do not enter this code path by default.max_frame_size only constrains the compressed WebSocket frame on the wire. A payload can stay under that limit and still expand far beyond it during inflation, so wire-size caps do not bound the memory/CPU cost of processing the message.Workarounds
compress: false on your WebSocket upgrade configuration, for example, in Phoenix endpoint/socket settings or WebSockAdapter.upgrade. This prevents unauthenticated clients from sending a small compressed frame that expands into excessive memory use.