CVE-2025-30358: Mesop Denial of Service Vulnerability
HIGHCVE-2025-30358 is a HIGH (CVSS 8.1) denial of service vulnerability (CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes) affecting Mesop libraries in the PyPI ecosystem. The issue involves mesop class pollution vulnerability leads to dos and jailbreak attacks. Remediation is available by upgrading affected packages to version 0.14.1.
CVE-2025-30358 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H).
How to Fix CVE-2025-30358
To remediate this vulnerability, upgrade all affected Mesop dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install mesop>=0.14.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show mesop
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-30358, inspect your installed packages using pip:
pip show mesop
Analyze the terminal output to locate any version of Mesop in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.14.1), your application is affected.
Note: The pip show mesop command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes, where the product receives input from an upstream component that specifies multiple attributes, properties, or fields that are to be initialized or updated in an object, but it does not properly control which attributes can be modified. In Mesop, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-30358 Affected Mesop Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mesop
|
PyPI |
< 0.14.1
|
0.14.1
|
References
Frequently Asked Questions
What is CVE-2025-30358?
Which Mesop versions are affected?
What version fixes CVE-2025-30358?
Is mesop affected?
What is the CVSS score of CVE-2025-30358?
What CWE is associated with CVE-2025-30358?
How can I check PyPI dependencies for CVE-2025-30358?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f3mf-hm6v-jfhh",
"modified" : "2025-03-27T18:14:29Z",
"published" : "2025-03-27T18:14:29Z",
"aliases" : [ "CVE-2025-30358" ],
"summary" : "Mesop Class Pollution vulnerability leads to DoS and Jailbreak attacks",
"details" : "From @jackfromeast and @superboy-zjc:\nWe have identified a class pollution vulnerability in Mesop (<= [0.14.0](https://github.com/mesop-dev/mesop/releases/tag/v0.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).\n\nJust 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "mesop"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.14.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/mesop-dev/mesop/security/advisories/GHSA-f3mf-hm6v-jfhh"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-30358"
}, {
"type" : "WEB",
"url" : "https://github.com/mesop-dev/mesop/commit/748e20d4a363d89b841d62213f5b0c6b4bed788f"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mesop-dev/mesop"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-915" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-27T18:14:29Z",
"nvd_published_at" : "2025-03-27T15:16:02Z"
}
}