Skip to content
GitHub Security Advisories·Indexed by this site · Originally published· Event →SelectedAttention36

Langflow fixes IP spoofing bypass vulnerability in MCP installation endpoint

Langflow: IP Spoofing Bypass via `X-Forwarded-For` Allowing Remote Configuration Write

AI summary

Langflow's MCP configuration installation endpoint has an IP spoofing bypass vulnerability: an authenticated remote attacker can bypass the local-only access restriction by forging an X-Forwarded-For: 127.0.0.1 request header, and write to or overwrite MCP client configuration files on the server file system. The vulnerability stems from get_client_ip unconditionally trusting the leftmost entry of X-Forwarded-For. This endpoint was introduced in v1.5.0, and affected versions are >= 1.5.0 and < 1.10.3. The write targets are resolved by the server side to fixed paths, including Cursor's ~/.cursor/mcp.json, Windsurf's ~/.codeium/windsurf/mcp_config.json, and Claude Desktop configuration. An attacker can use this to inject malicious MCP server definitions, causing local developers to connect to an attacker-controlled MCP server the next time they open their IDE.

Why it was selected

The announcement fully discloses the IP spoofing bypass path for Langflow's MCP installation endpoint, the impact scope, and the fixed version; you can check whether your self-hosted deployment still exposes this endpoint.

Read originalgithub.com