GitHub Advisoryadvisory · PyPI
GHSA-f3mf-hm6v-jfhh Mesop Class Pollution vulnerability leads to DoS and Jailbreak attacks
HIGH
Official page ↗
- Aliases
- CVE-2025-30358
- Ecosystem
- PyPI
- Packages
- mesop
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- Weaknesses
- CWE-915
- Reviewed
- 2025-03-27
Affected packages
• PyPI mesop: < 0.14.1 → fixed in 0.14.1
Description
From @jackfromeast and @superboy-zjc:
We have identified a class pollution vulnerability in Mesop (<= 0.14.0) application that allows attackers to overwrite global variables and class attributes in certain Mesop modules during runtime. This vulnerability could directly lead to a denial of service (DoS) attack against the server. Additionally, it could also result in other severe consequences given the application's implementation, such as identity confusion, where an attacker could impersonate an assistant or system role within conversations. This impersonation could potentially enable jailbreak attacks when interacting with large language models (LLMs).
Just like the Javascript's prototype pollution, this vulnerability could leave a way for attackers to manipulate the intended data-flow or control-flow of the application at runtime and lead to severe consequnces like RCE when gadgets are available.
Related
Alias · CVE (1)
- CVE-2025-30358 Mesop is a Python-based UI framework that allows users to build web applications. vulnerability
Weakness · CWE (1)
- CWE-915 Improperly Controlled Modification of Dynamically-Determined Object Attributes weakness