Skip to content
HighVulnerability

GHSA-3jr7-6hqp-x679: Mesop: Unbounded Thread Creation in WebSocket Handler Leads to Denial of Service

Published
Record updated
View JSON
Affected
  • mesop >= 1.2.3, < 1.2.5
Fixed in
1.2.5
  • released March 30, 2026, 3 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.8%

Summary

The Mesop framework's WebSocket handler, `handle_websocket` in `mesop/server/server.py`, starts a new `threading.Thread` for every parsed `ui_request` with no thread pool, message queue or rate limit. An unauthenticated attacker can send a rapid stream of messages over one connection to exhaust threads and memory, causing a denial of service for applications built on the framework.

Mitigation

Use a bounded thread pool (e.g., ThreadPoolExecutor with max_workers), introduce per-connection rate limiting, implement a message queue with backpressure, or consider migrating to an async event loop model instead of spawning OS threads.