NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Langflow

CVE-2026-8505: Langflow: Unauthenticated Flow Execution via Webhook Authentication Bypass

criticalCVSS 3.1 9.8GHSA-cf6m-vc3m-7cgm

Langflow 1.7.0 through 1.9.0 ships with webhook authentication off by default. Anyone who knows a flow's UUID can POST to its webhook endpoint and run the flow as its owner, without an API key. That can lead to remote code execution or denial of service. Upgrade langflow to 1.9.1, which turns webhook authentication on by default.

Published Oct 5, 2026 · Analysis Oct 30, 2026

What an attacker can do

The WEBHOOK_AUTH_ENABLE setting arrived in 1.7.0 with a default of False. In AuthService.get_webhook_user, a False value makes the code look up the flow owner and return that user without checking any API key. Every webhook endpoint is then public, and the only protection is that the flow_id is hard to guess.

An attacker sends one request, with no Authorization header:

POST /api/v1/webhook/<flow_id>

The flow runs with its owner's privileges. What that means depends on the flow. Flows that contain a Python code component run attacker-influenced input through code execution on the server. A related report, GHSA-6g4m-v5q2-475v, showed an RCE chain through the PythonCodeStructuredTool component, which calls exec() on flow-authored Python. Flows that send email or write to a database act on external systems. Triggering heavy flows in parallel can exhaust resources.

The attacker needs network access to the server (port 7860 in the proof of concept) and a flow UUID. UUIDs can leak through shared links, logs, browser history or exported flows.

Who is affected

Langflow >= 1.7.0, <= 1.9.0 from PyPI. Versions before 1.7.0 lack the setting, and 1.9.1 and later default it to True. A fixed version can still be exposed if an operator set LANGFLOW_WEBHOOK_AUTH_ENABLE=false.

pip show langflow

Also check the environment and .env files of every deployment for LANGFLOW_WEBHOOK_AUTH_ENABLE, and note which flows have webhook triggers.

langflow

Ecosystem
PyPI
Affected
>= 1.7.0, <= 1.9.0
Fixed in
1.9.1
Check
pip show langflow

How to fix it

Upgrade to Langflow 1.9.1 or later:

pip install --upgrade "langflow>=1.9.1"

PR #12845 changes the WEBHOOK_AUTH_ENABLE default from False to True. Webhook endpoints now require an API key and ownership validation. Do not set LANGFLOW_WEBHOOK_AUTH_ENABLE=false unless you accept public webhooks.

On versions you cannot upgrade, the advisory gives no separate workaround. Setting LANGFLOW_WEBHOOK_AUTH_ENABLE=true is the same switch that the fix flips, but the advisory does not describe it as a stopgap, so test it. Keep Langflow off the public internet until you upgrade. After patching, consider flows exposed in the past and rotate secrets they could reach.

How to tell if you were hit

Search web server or reverse proxy logs for POST requests to /api/v1/webhook/ that carry no Authorization header or API key, especially from unfamiliar IPs. Compare them with the flows that have webhook triggers. Look at Langflow's run history for executions you did not start, and check the host for unexpected child processes from the Langflow Python process, new files and outbound connections. Flows with Python code components deserve the first look.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

A vulnerability in Langflow's webhook authentication logic allows unauthenticated users to trigger the execution of any flow. The system incorrectly bypasses API key validation when the WEBHOOK_AUTH_ENABLE configuration is set to False. This allows a remote attacker who knows a flow's UUID to execute it as if they were the owner, potentially leading to Remote Code Execution (RCE) or Denial of Service (DoS).

Details

The WEBHOOK_AUTH_ENABLE setting was introduced in v1.7.0 (#9139) with a default of False. The root cause is in the webhook authentication path, AuthService.get_webhook_user (src/backend/base/langflow/services/auth/service.py; the thin wrapper in src/backend/base/langflow/services/auth/utils.py just delegates to it):

async def get_webhook_user(self, flow_id: str, request: Request) -> UserRead:
    settings_service = self.settings
    ...
    # VULNERABILITY: If this setting is False (default in <= 1.9.0), it returns
    # the flow owner WITHOUT checking the API Key in the request.
    if not settings_service.auth_settings.WEBHOOK_AUTH_ENABLE:
        try:
            flow_owner = await get_user_by_flow_id_or_endpoint_name(flow_id)
            return flow_owner

By default (v1.7.0 through v1.9.0), Langflow treats WEBHOOK_AUTH_ENABLE as False, meaning all webhook endpoints are public. This relies exclusively on the secrecy of the flow_id (UUID), which is an insecure practice (Security by Obscurity).

A related report, GHSA-6g4m-v5q2-475v, demonstrated a concrete RCE chain through this same bypass using the PythonCodeStructuredTool component (exec() on flow-authored Python code). That report is a duplicate of this root cause and has been closed in favor of this advisory; credit for that PoC has been added here.

PoC

  1. Identify a valid flow_id for a flow that performs a sensitive action (e.g., sending an email, writing to a database, or executing a Python script).
  2. Execute a POST request to the webhook endpoint without any Authorization header or API Key:
curl -X POST "http://<server-ip>:7860/api/v1/webhook/<flow_id>" \
     -H "Content-Type: application/json" \
     -d '{"input": "payload"}'
  1. Verify that the flow execution is triggered and the action is performed on the server.

Impact

This is a High-severity Authentication Bypass.

  • Remote Code Execution (RCE): Flows often contain components that execute arbitrary Python code. An attacker can leverage this to gain full control over the server.
  • Denial of Service (DoS): Attackers can exhaust system resources by triggering heavy flows concurrently.
  • Data Integrity: Unauthorized execution of flows can lead to unintended modification of databases or external systems connected via the flow.

Affected versions

>= 1.7.0, <= 1.9.0 (the range in which WEBHOOK_AUTH_ENABLE existed and defaulted to False).

Fix

Fixed in v1.9.1 by PR #12845 — fix(security): default WEBHOOK_AUTH_ENABLE to True. The setting's default changed from False to True, so webhook endpoints now require API key authentication and ownership validation by default, unless an operator explicitly opts out via LANGFLOW_WEBHOOK_AUTH_ENABLE=false.

Credited to AntonioABLima, windbreaker555, manus-use, l3tchupkt, andifilhohub, erichare.

Questions

Is Langflow 1.9.0 affected by CVE-2026-8505?

Yes. The affected range is 1.7.0 through 1.9.0 inclusive. Version 1.9.1 is the first fixed release.

Does the attacker need to be logged in?

No. The webhook endpoint accepted requests without an API key. The attacker only needs network access and a valid flow UUID.

Does upgrading to 1.9.1 fully close it?

Yes, unless you set LANGFLOW_WEBHOOK_AUTH_ENABLE=false. The fix only changes the default, so an explicit opt-out keeps webhooks public.

Is it exploited in the wild?

The sources do not say so, and it is not in CISA's KEV catalog. The advisory includes a simple curl proof of concept.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Langflow vulnerabilities

All Langflow entries