MCP Python stateful sessions retain memory without expiry
Stateful HTTP sessions retain initialization data without a default expiry or effective cleanup in the affected versions. A reachable client can create enough sessions to exhaust server memory using otherwise ordinary requests.
Stateful HTTP sessions retain initialization data without a default expiry or effective cleanup in the affected versions. A reachable client can create enough sessions to exhaust server memory using otherwise ordinary requests.
This is a maintainer-documented vulnerability disclosure, not evidence of exploitation against a named customer. Affected ranges: mcp >= 1.8.0, < 1.30.0; mcp >= 2.0.0, < 2.2.0. The maintainer lists patched releases: mcp 1.30.0; mcp 2.2.0.
Takeaway
Check the deployed package and its configuration against the advisory. Apply the listed fix on a supported release line and verify the trust boundary with an untrusted client or repository.