PyPI: langflow

CVE-2026-8505

Safety vulnerability ID: SFTY-20261005-44498

Affected versions of the `langflow` package are vulnerable to Missing Authentication for Critical Function due to webhook endpoints executing flows without API key validation when `WEBHOOK_AUTH_ENABLE` is `False`, which is the default. The `get_webhook_user` method of `AuthService` in `src/backend/base/langflow/services/auth/service.py` returns the flow owner resolved by `get_user_by_flow_id_or_endpoint_name` without checking any API key in the request whenever `WEBHOOK_AUTH_ENABLE` is disabled, so access to `/api/v1/webhook/<flow_id>` relies solely on the secrecy of the flow's UUID. A remote, unauthenticated attacker who knows a flow's UUID can send a POST request to its webhook endpoint without any `Authorization` header to run the flow as its owner, achieving remote code execution through components that execute Python code such as `PythonCodeStructuredTool`, modifying databases or external systems connected to the flow, or exhausting server resources by triggering heavy flows concurrently.

Created at: Oct 24, 2026Updated at: Oct 24, 2026

Overview

Langflow: Unauthenticated Flow Execution via Webhook Authentication Bypass

Advisory

langflow – Missing Authentication for Critical Function

Affected Package

Affecting langflow package, versions>= 1.7.0, <= 1.9.0

Also affects

---

How to Fix

Upgradelangflowto1.9.1or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more