Skip to content
GitHub Security Advisories·Indexed by this site · Originally published· Event →SelectedAttention39

Langflow fixes cross-project file read vulnerability in MCP resource handler

Langflow has Authenticated Cross-Project File Disclosure via Unscoped MCP Resource Handlers

AI summary

Langflow's project-level MCP transport validates project_id at connection time, but subsequent resources/read does not validate the ownership of the requested resource. An authenticated user can pass another user's flow file URI through their own project's MCP endpoint to read other users' files. This issue first appeared in v1.6.8, and the affected range was corrected by the maintainers to >= 1.6.8, <= 1.9.0. v1.9.1 fixes it via PR #12818. After the fix, handle_read_resource() requires user context and resolves the URI namespace to a Flow record belonging to the current user; the project-level server additionally validates folder_id. It also rejects filenames containing .., /, and \, and closes cross-user enumeration on the global MCP server. The regression test test_handle_read_resource_denies_other_users_flow reproduces this cross-user scenario and confirms that access is now denied.

Why it was selected

The report provides the complete affected version range, fixed versions, and regression test cases, helping teams using Langflow MCP verify whether their version has been patched.

Read originalgithub.com