Skip to content
HighVulnerability

GHSA-rf6x-r45m-xv3w: Langflow is Missing Ownership Verification in API Key Deletion (IDOR)

Published
Record updated
View JSON
Affected
  • langflow < 1.7.2
Fixed in
1.7.2
  • released January 7, 2026, 70 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%

Summary

Langflow's DELETE endpoint for API keys, delete_api_key_route() in src/backend/base/langflow/api/v1/api_key.py, checks only that the caller is authenticated. The delete_api_key() CRUD function in crud.py does not verify that the key belongs to the current user, so any authenticated user can delete other users' API keys by ID. The source says this enables account takeover, denial of service, and disruption of other users' integrations.

Mitigation

Pass current_user to the delete function; in delete_api_key(), verify api_key.user_id == current_user.id before deletion; raise a 403 Forbidden error if the user does not own the key. Example: if api_key.user_id != user_id: raise HTTPException(status_code=403, detail='Unauthorized')