Executive brief
Langflow, a tool for building AI applications, contains a security flaw that allows any logged-in user to delete the API keys of other users. By guessing or discovering the unique ID of another user's API key, an attacker can disable their integrations and disrupt their services. This could lead to significant operational downtime and unauthorized service interruptions for affected organizations.
Technical details
An Insecure Direct Object Reference (IDOR) vulnerability exists in the `delete_api_key_route` endpoint within `src/backend/base/langflow/api/v1/api_key.py`. The endpoint accepts an `api_key_id` (UUID) and performs a generic authentication check but fails to verify if the authenticated user owns the specific key being deleted. An attacker with a valid account can exploit this by sending a DELETE request with a targeted `api_key_id`, leading to unauthorized deletion of credentials. This issue was addressed in version 1.9.0 by ensuring the `current_user` is passed to the CRUD function to verify ownership before proceeding with the deletion.
Affected products
- langflow-ai langflow < 1.9.0
Timeline
- 2026-03-16: disclosed
- 2026-03-18: advisory: GitHub Advisory published
- 2026-03-20: other: NVD published