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.
Overview
Langflow: Unauthenticated Flow Execution via Webhook Authentication Bypass
Advisory
langflow – Missing Authentication for Critical Function
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20261005-44498/CVE-2026-8505
- https://github.com/langflow-ai/langflow/security/advisories/GHSA-cf6m-vc3m-7cgm
- https://nvd.nist.gov/vuln/detail/CVE-2026-8505
- https://github.com/langflow-ai/langflow/pull/12845
- https://github.com/langflow-ai/langflow/commit/cb6f7508dda83ead9c3e4417e96e4b5bd9a260c3
- https://github.com/langflow-ai/langflow/releases/tag/v1.9.1
- https://www.ibm.com/support/pages/node/7278921
- https://github.com/advisories/GHSA-cf6m-vc3m-7cgm
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
