Vulnerabilities in pkg:pypi/modular
PACKAGECVE-2025-60455 is a CRITICAL modular max serve has unsafe vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Modular libraries in the PyPI ecosystem. The issue involves modular max serve has unsafe deserialization vulnerability. Remediation is available by upgrading affected packages to version 25.6.0.
pkg:pypi/modular
Vulnerability advisories affecting package pkg:pypi/modular. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-7xcv-9j6c-2fmc | CVE-2025-60455 | CRITICAL | Modular Max Serve has Unsafe Deserialization vulnerability |
CVE-2025-60455 at a Glance
How to Fix CVE-2025-60455
To remediate this vulnerability, upgrade all affected Modular 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 modular>=25.6.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show modular
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-60455, inspect your installed packages using pip:
pip show modular
Analyze the terminal output to locate any version of Modular in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 25.6.0), your application is affected.
Note: The pip show modular command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Modular, 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-60455 Affected Modular Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
modular
|
PyPI |
< 25.6.0
|
25.6.0
|
References
Frequently Asked Questions
What is CVE-2025-60455?
Which Modular versions are affected?
What version fixes CVE-2025-60455?
Is modular affected?
What CWE is associated with CVE-2025-60455?
How can I check PyPI dependencies for CVE-2025-60455?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7xcv-9j6c-2fmc",
"modified" : "2025-11-18T22:08:39Z",
"published" : "2025-11-18T21:32:31Z",
"aliases" : [ "CVE-2025-60455" ],
"summary" : "Modular Max Serve has Unsafe Deserialization vulnerability",
"details" : "Unsafe Deserialization vulnerability in Modular Max Serve before 25.6, specifically when the \"--experimental-enable-kvcache-agent\" feature is used allowing attackers to execute arbitrary code.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "modular"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "25.6.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-60455"
}, {
"type" : "WEB",
"url" : "https://github.com/modular/modular/issues/4795"
}, {
"type" : "WEB",
"url" : "https://github.com/modular/modular/commit/10620059fb5c47fb0c30e5d21a8ff3b8d622fba4"
}, {
"type" : "WEB",
"url" : "https://github.com/modular/modular/commit/b20e749fa892dbe772e890a268002f732164d9f5"
}, {
"type" : "WEB",
"url" : "https://github.com/modular/modular/commit/ee9c4ab02345dd30bed8b79771b6909ff1b930a1"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/modular/modular"
}, {
"type" : "WEB",
"url" : "https://github.com/modular/modular/blame/main/max/serve/kvcache_agent/kvcache_agent.py#L220"
}, {
"type" : "WEB",
"url" : "https://www.oligo.security/blog/shadowmq-how-code-reuse-spread-critical-vulnerabilities-across-the-ai-ecosystem"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2025-11-18T22:08:39Z",
"nvd_published_at" : "2025-11-18T19:15:49Z"
}
}