CVE-2026-55255: Langflow: IDOR Vulnerability in `/api/v1/responses` Endpoint Allows Authenticated Attackers to Access Another User's Flow
Langflow before 1.9.1 has an IDOR in POST /api/v1/responses. Any authenticated user can run another user's flow by passing the victim's flow ID, and so reach data and credentials processed by it. CISA lists it as exploited. Fixed in Langflow 1.9.1.
Published Jun 19, 2026 · Updated Jul 7, 2026 · Analysis Nov 8, 2026
What an attacker can do
The helper get_flow_by_id_or_endpoint_name in src/backend/base/langflow/helpers/flow.py looks a flow up by UUID with session.get(Flow, flow_id) and never compares the owner to the caller. Only the endpoint_name branch checks user_id. The /api/v1/responses endpoint uses this helper, so the model field accepts any flow's UUID.
The attacker needs a valid account and API key, plus the victim's flow ID. In the observed attack, the operator listed GET /api/v1/flows/ to harvest flow UUIDs, then sent POST /api/v1/responses with each ID as model and the input leak api keys, trying to pull credentials out of another user's flow.
The attacker runs the victim's flow with their own input. They can read data it processes, make it use the victim's connected model keys and tools, and burn the victim's resources. Multi-tenant Langflow is hit hardest. The request looks like a normal API call, so only the unexpected flow ID gives it away.
Who is affected
The pip package langflow before 1.9.1. Instances with more than one user, or where users are not fully trusted, are exposed. A single-user instance leaks nothing new.
pip show langflowFor Docker, check the image tag.
langflow
- Ecosystem
- PyPI
- Affected
- < 1.9.1
- Fixed in
- 1.9.1
- Check
pip show langflow
How to fix it
Upgrade to Langflow 1.9.1 (PR #12832).
pip install --upgrade langflow==1.9.1The fix enforces ownership on both the UUID and endpoint_name branches. Cross-user lookups return 404, not 403. /api/v1/responses and /api/v2/workflow now pass user_id, and the /api/v1/run* routes use auth-aware dependencies. Webhook routes keep the unscoped lookup by design.
CISA's required action: apply mitigations per vendor instructions and BOD 26-04, or discontinue use if mitigations are unavailable. The due date is 2026-07-10, which binds US federal agencies. Review credentials embedded in flows if you suspect exposure.
CISA required action: Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
How to tell if you were hit
Sysdig's write-up describes the observed pattern: enumeration of GET /api/v1/flows/, then POST /api/v1/responses with another user's flow ID as model and the input leak api keys. Its indicators are source IP 45.207.216.55 and JA4 fingerprint t13i1f0a00_e8f1e7e78f70_1f22a2ca17c4. Search access logs for /api/v1/responses calls where the flow ID does not belong to the calling key's user. Rotate keys stored in flows that were run by others.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Insecure Direct Object Reference (IDOR) vulnerability in /api/v1/responses endpoint allows an authenticated attacker to execute any flow belonging to another user by specifying the victim's flow ID in the request.
Details
The vulnerability exists in the get_flow_by_id_or_endpoint_name helper function in `src/backend/base/langflow/helpers/flow.py` (lines 399-414).
When a flow is accessed via UUID (flow_id), the function queries the database directly without verifying if the authenticated user owns that flow:
# src/backend/base/langflow/helpers/flow.py:399-414
async def get_flow_by_id_or_endpoint_name(flow_id_or_name: str, user_id: str | UUID | None = None) -> FlowRead:
async with session_scope() as session:
try:
flow_id = UUID(flow_id_or_name)
# When using UUID, query directly WITHOUT checking user_id
flow = await session.get(Flow, flow_id) # ❌ No user_id check!
except ValueError:
endpoint_name = flow_id_or_name
stmt = select(Flow).where(Flow.endpoint_name == endpoint_name)
# Only when using endpoint_name is user_id checked
if user_id:
stmt = stmt.where(Flow.user_id == uuid_user_id)This function is used by the /api/v1/responses endpoint (defined in `src/backend/base/langflow/api/v1/openai_responses.py:589`).
PoC (Proof of Concept)
# Attacker (user A) with API_KEY_A tries to execute victim (user B)'s flow
curl -X POST "http://localhost:7860/api/v1/responses" \
-H "x-api-key: sk-ATTACKER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "VICTIM_FLOW_ID",
"input_value": "test",
"stream": false
}'
# Returns 200 and executes the victim's flowImpact
Any authenticated user can:
- Execute any flow in the system by knowing its flow ID
- Access potentially sensitive data processed by victim's flows
- Consume victim's resources
Fixes
Fixed in PR #12832 (fix(security): close IDOR in get_flow_by_id_or_endpoint_name), merged 2026-04-22, released in Langflow 1.9.1.
The helper normalizes user_id once and enforces ownership on both lookup branches (UUID *and* endpoint_name):
flow_id = UUID(flow_id_or_name)
flow = await session.get(Flow, flow_id)
if flow is not None and uuid_user_id is not None and flow.user_id != uuid_user_id:
flow = None # cross-user lookup falls through to the shared 404Key points:
- Cross-user lookups return 404 (not 403), so flow existence is not disclosed via a 403-vs-404 oracle.
/api/v1/responsesand/api/v2/workflowpassuser_idexplicitly, so fixing the helper closes them directly; the/api/v1/run*routes were additionally moved from a bareDepends(get_flow_by_id_or_endpoint_name)to auth-aware wrapper dependencies (defense in depth).- A malformed
user_idnow fails closed (404 instead of a raw 500). - Webhook routes intentionally keep the unscoped lookup (public by design / explicit ownership check elsewhere).
- Regression tests cover the cross-user UUID case and reproduce the original PoC against
/api/v1/responses.
Acknowledgements
Thanks to the security researchers who responsibly disclosed this vulnerability:
- @yzeirnials
- @johnatzeropath
- @LeftenantZero
- @Zwique
Credited to yzeirnials, andifilhohub, LeftenantZero, Zwique, AntonioABLima, erichare, Adam-Aghili.
Questions
- Is CVE-2026-55255 exploited in the wild?
Yes. CISA added it to the Known Exploited Vulnerabilities catalog on 2026-07-07. Sysdig reported the first exploitation on June 25, 2026.
- Does the attacker need a Langflow account?
Yes, an authenticated user with an API key, and the target flow ID. Attackers got IDs by listing flows.
- Which version fixes it?
Langflow 1.9.1. All earlier versions are affected.
- Does the fix also cover other routes?
Yes. Per the advisory it also covers
/api/v2/workflowand the/api/v1/run*routes. Webhook routes stay public by design.
References
Read for this analysis:
- https://github.com/langflow-ai/langflow/security/advisories/GHSA-qrpv-q767-xqq2
- https://webflow.sysdig.com/blog/understanding-langflow-cve-2026-55255-and-why-higher-cvss-vulnerabilities-arent-always-the-most-exploited
- https://github.com/langflow-ai/langflow/pull/12832
- https://nvd.nist.gov/vuln/detail/CVE-2026-55255
- https://github.com/langflow-ai/langflow/commit/2c9f498d664a3c32698b57d7c5e752625291060e
- https://github.com/pypa/advisory-database/tree/main/vulns/langflow/PYSEC-2026-221.yaml
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-55255
- https://github.com/advisories/GHSA-qrpv-q767-xqq2
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 entriesCVE-2026-105697
Langflow: OS command injection (RCE) via arbitrary command in MCP stdio server configuration
critical9.9Oct 7, 2026CVE-2026-105698
Langflow : Cross-user flow access and vertex execution via deprecated /api/v1/build/{flow_id}/vertices endpoints
medium5.4Oct 7, 2026CVE-2026-105699
Langflow has Authenticated Cross-Project File Disclosure via Unscoped MCP Resource Handlers
high7.1Oct 7, 2026CVE-2026-105741
Langflow: IP Spoofing Bypass via `X-Forwarded-For` Allowing Remote Configuration Write
high7.1Oct 7, 2026CVE-2026-10561
Langflow: PythonREPLComponent executes unsandboxed Python code, enabling authenticated RCE and privilege escalation
critical9.9Oct 6, 2026GHSA-j8f7-x8jm-wmm4
Langflow: SSRF in URL-taking components (protection disabled by default / warn-only, not applied to RSS, SearXNG, Web Search, Home Assistant, Glean, Docling)
medium6.3Oct 6, 2026
