Patchfirst
CVE-2026-33057 Public exploit Critical · 9.8 EPSS 7.1%

Mesop Affected by Unauthenticated Remote Code Execution via Test Suite Route /exec-py

Fix:upgrade mesop to 1.2.3 or later Details ↓

mesop-dev · mesop

Summary

Mesop, a Python-based UI framework from mesop-dev, contains an unauthenticated code execution flaw in the /exec-py route of the debugging Flask server at ai/sandbox/wsgi_app.py, within the ai/ testing module. The route accepts base64-encoded Python code via a POST request's code parameter, saves it to disk, and executes it, so an attacker who can send HTTP requests to that server can run arbitrary commands on the host without authentication or user interaction.

Official description · CVE.org

Mesop is a Python-based UI framework that allows users to build web applications. In versions 1.2.2 and below, an explicit web endpoint inside the ai/ testing module infrastructure directly ingests untrusted Python code strings unconditionally without authentication measures, yielding standard Unrestricted Remote Code Execution. Any individual capable of routing HTTP logic to this server block will gain explicit host-machine command rights. The AI codebase package includes a lightweight debugging Flask server inside ai/sandbox/wsgi_app.py. The /exec-py route accepts base_64 encoded raw string payloads inside the code parameter natively evaluated by a basic POST web request. It saves it rapidly to the operating system logic path and injects it recursively using execute_module(module_path...). This issue has been fixed in version 1.2.3.

Breakdown
78.5 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

Public exploit code (PoC-in-GitHub) appeared 5 months after disclosure. No confirmed exploitation is recorded.

  1. Disclosedday 0
  2. Public exploit codePoC-in-GitHub+5 mo

6 fixes in mesop over 2 years. The latest fix listed for mesop is 1.3.4.

Fixes in mesopPyPI package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 0.12.4CVE-2024-4560118 Sep 2024
  2. 0.14.1CVE-2025-3035827 Mar 2025
  3. 1.2.3CVE-2026-3305420 Mar 2026
  4. 1.2.3CVE-2026-3305720 Mar 2026
  5. 1.2.5CVE-2026-348243 Apr 2026
  6. 1.3.4CVE-2026-9342123 Sep 2026Latest listed

Affected versions and fixes

as published in the CVE record

mesop-dev mesop

Affected: < 1.2.3

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: mesop.

Upgrade to 1.2.3 or later

pippip install "mesop>=1.2.3"

The first fix for CVE-2026-33057. No other CVE tracked by Patchfirst affects this package.

Affected versions

If you runUpgrade to
All versions before 1.2.31.2.3

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 16 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

2 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close