Skip to content
EventPast event

Langflow fixes IP spoofing bypass vulnerability in MCP installation endpoint

1 reports1 reporting sourcesLatest report

Start here

AI overview

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

Developments on the same subject and issue, from earliest to latest

6 events
  1. · 1 reports· Attention37
    Langflow Smart Transform prompt injection leading to code execution vulnerability
  2. · 3 reports· Attention32
    Langflow high-severity vulnerability reportedly targeted in honeypot exploitation attempts
  3. · 1 reports· Attention39
    Langflow PythonREPLComponent not sandboxed leads to RCE
  4. · 1 reports· Attention36

    Langflow fixes IP spoofing bypass vulnerability in MCP installation endpointThis event

  5. · 1 reports· Attention20
    Langflow code validation endpoint has a code injection vulnerability
  6. · 1 reports· Attention32
    An authenticated flow author in Langflow OSS can bypass file access isolation

Progress timeline

Oct 8
  1. GitHub Security AdvisoriesSelected
    Langflow 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.