# CVE-2026-33057: Mesop Affected by Unauthenticated Remote Code Execution via Test Suite Route /exec-py

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.59%, higher than 92% of CVEs (2026-11-30)
- Published: 2026-03-18T20:05:00.000Z
- Modified: 2026-11-16T15:45:09.368Z
- Also known as: GHSA-gjgx-rvqr-6w6v, PYSEC-2026-412
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- mesop-dev mesop: < 1.2.3; before 1.2.3
- mesop (PyPI): before 1.2.3

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/mesop-dev/mesop/security/advisories/GHSA-gjgx-rvqr-6w6v> (vendor-advisory, web)
- <https://github.com/mesop-dev/mesop/commit/825f55970c20686de3f28e2c66df4d74e9d4db47> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33057> (advisory)
- <https://github.com/mesop-dev/mesop> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/mesop/PYSEC-2026-412.yaml> (web)
- <https://pypi.org/project/mesop> (package, web)
- <https://github.com/advisories/GHSA-gjgx-rvqr-6w6v> (advisory)

## Sources

- CVE List: [CVE-2026-33057](https://www.cve.org/CVERecord?id=CVE-2026-33057), CVE Terms of Use, modified 2026-03-25
- GitHub Advisory Database: [GHSA-gjgx-rvqr-6w6v](https://github.com/advisories/GHSA-gjgx-rvqr-6w6v), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2026-33057](https://nvd.nist.gov/vuln/detail/CVE-2026-33057), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-412](https://osv.dev/vulnerability/PYSEC-2026-412), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-33057 · Whole record: https://cve.day/CVE-2026-33057.json · Rebuilt by cve.day 2026-11-25T22:59:16.293Z
