CVE-2026-55255: Langflow Authorization Bypass Through User-Controlled Key Vulnerability

Published Jun 19, 2026
·
Updated

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 getflowbyidorendpointname helper function in src/backend/base/langflow/helpers/flow.py (lines 399-414).

When a flow is accessed via UUID (flowid), the function queries the database directly without verifying if the authenticated user owns that flow:

python src/backend/base/langflow/helpers/flow.py:399-414 async def getflowbyidorendpointname(flowidorname: str, userid: str | UUID | None = None) -> FlowRead: async with sessionscope() as session: try: flowid = UUID(flowidorname) # When using UUID, query directly WITHOUT checking userid flow = await session.get(Flow, flowid) # ❌ No userid check! except ValueError: endpointname = flowidorname stmt = select(Flow).where(Flow.endpointname == endpointname) # Only when using endpointname is userid checked if userid: stmt = stmt.where(Flow.userid == uuiduserid)

This function is used by the /api/v1/responses endpoint (defined in src/backend/base/langflow/api/v1/openairesponses.py:589).

PoC (Proof of Concept)

bash Attacker (user A) with APIKEYA tries to execute victim (user B)'s flow curl -X POST "http://localhost:7860/api/v1/responses" \ -H "x-api-key: sk-ATTACKERAPIKEY" \ -H "Content-Type: application/json" \ -d '{ "model": "VICTIMFLOWID", "inputvalue": "test", "stream": false }' Returns 200 and executes the victim's flow

Impact

Any authenticated user can: 1. Execute any flow in the system by knowing its flow ID 2. Access potentially sensitive data processed by victim's flows 3. Consume victim's resources

Fixes

Fixed in PR #12832 (fix(security): close IDOR in getflowbyidorendpointname), merged 2026-04-22, released in Langflow 1.9.1.

The helper normalizes userid once and enforces ownership on both lookup branches (UUID and endpointname):

python flowid = UUID(flowidorname) flow = await session.get(Flow, flowid) if flow is not None and uuiduserid is not None and flow.userid != uuiduserid: flow = None # cross-user lookup falls through to the shared 404

Key points: - Cross-user lookups return 404 (not 403), so flow existence is not disclosed via a 403-vs-404 oracle. - /api/v1/responses and /api/v2/workflow pass userid explicitly, so fixing the helper closes them directly; the /api/v1/run routes were additionally moved from a bare Depends(getflowbyidorendpointname) to auth-aware wrapper dependencies (defense in depth). - A malformed userid now 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

Other sources

Langflow contains an authorization bypass through user-controlled key vulnerability which allows an authenticated attacker to execute any flow belonging to another user by specifying the victim's flow ID in the request.

CISA

Langflow is a tool for building and deploying AI-powered agents and workflows. Prior to 1.9.1, an 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. This vulnerability is fixed in 1.9.1.

NVD

Affected Software

3 affected componentsFixes available
pip/langflow<1.9.1
1.9.1
Langflow Langflow
Langflow Langflow<1.9.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/langflow to a version that resolves this vulnerability.

    Fixed in 1.9.1
  2. Upgrade

    Upgrade Langflow to a version that resolves this vulnerability.

    Fixed in 1.9.1Patch PR #12832
  3. Configuration

    Update the get_flow_by_id_or_endpoint_name helper so that the UUID lookup path does not query Flow by flow_id without verifying the authenticated user owns the flow. Ensure malformed/invalid user_id fails closed (404 vs raw 500) and cross-user lookups return 404 (not 403).

    src/backend/base/langflow/helpers/flow.py (get_flow_by_id_or_endpoint_name helper) user_id ownership enforcement for UUID and endpoint_name lookup branches = Enforce ownership on both UUID and endpoint_name branches; fail closed with 404 for cross-user lookups (404 instead of raw 500)

Event History

Jun 19, 2026
Advisory Published
via GitHub·09:16 PM
Data Sourced
via GitHub·09:16 PM
DescriptionSeverityWeaknessAffected Software
Jun 23, 2026
CVE Published
via MITRE·04:28 PM
Data Sourced
via MITRE·04:28 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 7, 2026
Known Exploited
via CISA·12:00 AM
Data Sourced
via CISA·12:00 AM
RemedyDescriptionAffected Software
Jul 8, 2026
News Published
via BleepingComputer·09:58 AM
News Published
via BleepingComputer·09:59 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-55255?

The severity of CVE-2026-55255 is critical, with a CVSS score of 9.9.

2

How do I fix CVE-2026-55255?

To fix CVE-2026-55255, implement access controls to prevent unauthorized users from accessing flows belonging to other users.

3

What conditions are required to exploit CVE-2026-55255?

An attacker needs to be authenticated and must know the victim's flow ID to exploit CVE-2026-55255.

4

What is the risk associated with CVE-2026-55255?

CVE-2026-55255 has a risk rating of 78, indicating a significant impact on confidentiality and integrity.

5

What type of vulnerability is CVE-2026-55255?

CVE-2026-55255 is classified as an Insecure Direct Object Reference (IDOR) vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203