Intel

AIKIDO-2025-10323

mcp is vulnerable to Insecure Default Variable Initialization

Insecure Default Variable Initialization Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published May 23, 2025

45

Medium Risk

This Affects:

PYTHONmcp
0.8.0 - 1.9.0
Fixed in 1.9.1
Are you affected? Scan for Free

TL;DR

Affected versions of this package do not enforce secure default server settings. When running locally, the server binds to all network interfaces (0.0.0.0) instead of restricting access to localhost (127.0.0.1). This increases the risk of exposure to external access and makes the application more susceptible to DNS rebinding attacks. The patch addresses this by setting localhost as the default bind address, thereby reducing the attack surface.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

mcp is vulnerable to Insecure Default Variable Initialization in versions 0.8.0 - 1.9.0.

How to fix this

Upgrade the mcp library to the latest patched version or ensure that the binding addresses are not set to 0.0.0.0.