Langflow fixes IP spoofing bypass vulnerability in MCP installation endpoint
Start here
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.
Generated by AI from reports · Updated 2026-10-22
Storyline
- · 1 reports· Attention37Langflow Smart Transform prompt injection leading to code execution vulnerability
- · 3 reports· Attention32Langflow high-severity vulnerability reportedly targeted in honeypot exploitation attempts
- · 1 reports· Attention39Langflow PythonREPLComponent not sandboxed leads to RCE
- · 1 reports· Attention36
Langflow fixes IP spoofing bypass vulnerability in MCP installation endpointThis event
- · 1 reports· Attention20Langflow code validation endpoint has a code injection vulnerability
- · 1 reports· Attention32An authenticated flow author in Langflow OSS can bypass file access isolation
Progress timeline
- GitHub Security AdvisoriesSelectedLangflow fixes IP spoofing bypass vulnerability in MCP installation endpoint
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.