Skip to main content

CVE-2026-33053

HIGH
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-03-18 https://github.com/langflow-ai/langflow GHSA-rf6x-r45m-xv3w
8.8
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as any user
  2. Exploit
    Request delete endpoint with another user's api_key_id
  3. Execution
    Bypass ownership check in CRUD function
  4. Impact
    Delete target API key

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
Exploitation Conditions

Authenticated user with valid login credentials to Langflow API. Attacker must know or enumerate valid api_key_id values belonging to other users. No victim interaction required. Affects Langflow installations where delete_api_key_route() lacks per-user authorization checks.

Impact

This vulnerability presents a high real-world risk despite the absence of published CVSS scores or EPSS data. The practical exploitability is rated as High by the vulnerability discoverer, and the attack requires only low privileges (any authenticated user) with low complexity since UUID enumeration is straightforward. The vulnerability enables both horizontal privilege escalation (accessing peer user resources) and denial of service through mass API key deletion. The availability of a working patch (commit fdc1b3b1448ff3317d73d3e769a6c4a1717f74d7) and public security advisory (GHSA-rf6x-r45m-xv3w) increases the urgency for remediation as attackers can reverse-engineer the fix to identify vulnerable instances. The technical impact extends beyond confidentiality to include integrity and availability concerns, as API key deletion can disrupt integrations and potentially enable account takeover if users rely on API keys for authentication workflows. Organizations running Langflow in production with multiple users should treat this as a critical priority given the authentication bypass and denial of service potential.

Exploit ScenarioDerived

An authenticated attacker with a valid Langflow account discovers or enumerates valid API key UUIDs through timing attacks, error message analysis, or sequential UUID generation patterns. The attacker crafts DELETE requests to the /api/v1/api_key/{api_key_id} endpoint with target UUIDs belonging to other users, successfully deleting legitimate API keys without triggering authorization failures since the endpoint only validates authentication rather than ownership. This enables the attacker to systematically disable integrations for other users, force re-authentication workflows that may expose credentials, or create denial of service conditions by mass-deleting API keys across the platform, all while appearing as legitimate authenticated API activity in standard logs.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 18, 2026

An Insecure Direct Object Reference (IDOR) vulnerability exists in the Langflow API key deletion endpoint that allows any authenticated user to delete API keys belonging to other users. The delete_api_key_route() function in langflow version prior to 1.7.2 fails to verify ownership of API keys before deletion, enabling attackers to enumerate and delete arbitrary API keys by manipulating the api_key_id UUID parameter. A patch is available from the vendor as of version 1.7.2, addressing this authentication bypass that could lead to account takeover and denial of service.

RemediationAI

Upgrade Langflow to version 1.7.2 or later, which includes the fix implemented in commit fdc1b3b1448ff3317d73d3e769a6c4a1717f74d7 available at https://github.com/langflow-ai/langflow/commit/fdc1b3b1448ff3317d73d3e769a6c4a1717f74d7. The patch modifies the delete_api_key_route endpoint to pass the current_user context to the delete_api_key CRUD function and adds ownership verification (api_key.user_id == current_user.id) before allowing deletion, returning HTTP 403 Forbidden for unauthorized attempts. Release notes are available at https://github.com/langflow-ai/langflow/releases/tag/1.7.2. Until patching is completed, implement compensating controls such as API gateway request validation to verify user ownership before forwarding delete requests, enable comprehensive audit logging for all API key operations to detect enumeration attempts, and consider temporarily restricting API key deletion functionality to administrative users only through role-based access control modifications.

Affected Packages

pypi langflow fix: 1.9.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This vulnerability affects the Langflow Python package (pkg:pip/langflow) and represents a classic implementation of CWE-639 (Authorization Bypass Through User-Controlled Key). The flaw exists in src/backend/base/langflow/api/v1/api_key.py where the DELETE endpoint at lines 44-53 uses the get_current_active_user dependency for authentication but fails to implement authorization checks. The endpoint calls delete_api_key() without passing the current_user context, and the corresponding CRUD function in crud.py deletes API keys based solely on the api_key_id parameter without verifying that the api_key.user_id matches the authenticated user's ID. This contrasts with properly implemented GET and POST endpoints in the same file that correctly filter by user_id and associate keys with the authenticated user. The vulnerability leverages UUID enumeration to target API keys across user boundaries in a multi-tenant environment.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch released
Mar 18, 2026 - 13:15 nvd
Patch available
CVE Published
Mar 18, 2026 - 12:58 nvd
HIGH 8.8

DescriptionGitHub Advisory

Detection Method: Kolega.dev Deep Code Scan

AttributeValue
Locationsrc/backend/base/langflow/api/v1/api_key.py:44-53
Practical ExploitabilityHigh
Developer Approverfaizan@kolega.ai

Description

The delete_api_key_route() endpoint accepts an api_key_id path parameter and deletes it with only a generic authentication check (get_current_active_user dependency). However, the delete_api_key() CRUD function does NOT verify that the API key belongs to the current user before deletion.

Affected Code

@router.delete("/{api_key_id}", dependencies=[Depends(auth_utils.get_current_active_user)])
async def delete_api_key_route(
    api_key_id: UUID,
    db: DbSession,
):
    try:
        await delete_api_key(db, api_key_id)
    except Exception as e:
        raise HTTPException(status_code=400, detail=str(e)) from e
    return {"detail": "API Key deleted"}

Evidence

In crud.py lines 44-49, delete_api_key() retrieves the API key by ID and deletes it without checking if the key belongs to the authenticated user. The endpoint also doesn't pass the current_user to the delete function for verification.

Impact

An authenticated attacker can enumerate and delete API keys belonging to other users by guessing or discovering their API key IDs. This allows account takeover, denial of service, and disruption of other users' integrations.

Recommendation

Modify the delete_api_key endpoint and function: (1) Pass current_user to the delete function; (2) In delete_api_key(), verify api_key.user_id == current_user.id before deletion; (3) Raise a 403 Forbidden error if the user doesn't own the key. Example: if api_key.user_id != user_id: raise HTTPException(status_code=403, detail='Unauthorized')

Notes

Confirmed IDOR vulnerability. The delete_api_key_route endpoint at line 44-53 accepts an api_key_id and calls delete_api_key(db, api_key_id) without passing the current_user. The CRUD function delete_api_key() at crud.py:44-49 retrieves the API key by ID and deletes it without verifying ownership (api_key.user_id current_user.id). Compare this to the GET endpoint at lines 17-28 which correctly filters by user_id, and the POST endpoint at lines 31-41 which correctly associates the key with user_id. An authenticated attacker can delete any user's API keys by guessing/enumerating UUIDs. Fix: Pass current_user to delete_api_key and verify api_key.user_id current_user.id before deletion, returning 403 if unauthorized.

Developer Review Notes

Does not accept current_user as a parameter. Allowing deletion of any user's API keys even without permissions.

Executive ViewAI

Why It Matters

An authentication flaw in Langflow's API key management allows any authenticated user to delete API keys belonging to other users, potentially compromising account access and enabling service disruption. Organizations using Langflow are at immediate risk of unauthorized account takeover and operational disruption if users' API keys are deleted by malicious insiders or compromised accounts.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 85% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)GitHub Advisory

pkg:pip/langflow

Related Vulnerabilities in Authorization and Access Control Flaws

View all 2

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy