CVE-2026-8505 — Vulnerability in langflow — CVE Details
Langflow: Unauthenticated Flow Execution via Webhook Authentication Bypass
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.14%). Schedule for your next planned update.
Does your project use an affected langflow version?
Paste your requirements.txt to check it for CVE-2026-8505 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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
- Identify a valid
flow_idfor a flow that performs a sensitive action (e.g., sending an email, writing to a database, or executing a Python script). - Execute a POST request to the webhook endpoint without any
Authorizationheader or API Key:
curl -X POST "http://<server-ip>:7860/api/v1/webhook/<flow_id>" \
-H "Content-Type: application/json" \
-d '{"input": "payload"}'
- 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.
Advisory Timeline
- First published October 5, 2026 (52 days ago).
- Last revised October 15, 2026 — 10 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "langflow>=1.9.1"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: PyPI (1).
| Package | Fixed In |
|---|---|
| langflow PyPI · Affected: 1.7.0, 1.7.1, 1.7.2, 1.7.3 (+14 more) | 1.9.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-306
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/langflow-ai/langflow/security/advisories/GHSA-cf6m-vc3m-7cgmWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-8505ADVISORY
- https://github.com/langflow-ai/langflow/pull/12845WEB
- https://github.com/langflow-ai/langflow/commit/cb6f7508dda83ead9c3e4417e96e4b5bd9a260c3WEB
- https://github.com/langflow-ai/langflowPACKAGE
- https://github.com/langflow-ai/langflow/releases/tag/v1.9.1WEB
- https://www.ibm.com/support/pages/node/7278921WEB
Frequently Asked Questions
- What is CVE-2026-8505?
- Langflow: Unauthenticated Flow Execution via Webhook Authentication Bypass. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2026-8505?
- CVE-2026-8505 affects langflow. It has a 1.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-8505 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 66.4% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-55255CRITICAL
- CVE-2026-48519CRITICAL
- CVE-2026-27966CRITICAL
Langflow has Remote Code Execution in CSV Agent
- CVE-2026-42048CRITICAL
Langflow Knowledge Bases API is Vulnerable to Path Traversal
- CVE-2024-48061CRITICAL
Langflow vulnerable to remote code execution
- CVE-2026-21445CRITICAL
Langflow Missing Authentication on Critical API Endpoints
- CVE-2026-0770CRITICAL
Langflow affected by Remote Code Execution via validate_code() exec()
- CVE-2026-55450CRITICAL
Langflow: Unauthenticated file upload leads to DoS (space exhaustion) and information leak