logo

Database

N8n Mcp Trigger Without Authentication

Description

Detects when an MCP Server Trigger node in the published version of an n8n workflow does not authenticate its clients, because its Authentication option is None, a value n8n does not check or an expression n8n resolves only when the workflow runs, so any MCP client that reaches its URL can list the tools connected to it and call them. Anyone who learns or guesses that URL can then run those tools without an account on the instance, together with the credentials and the access to other systems they hold.

Weakness:

006 - Authentication mechanism absence or evasion

Category: Access Subversion

Detection Strategy

    • Lists every workflow the API key's user can see through the n8n public API, all of them for an owner or admin key, and reads only the version of each one that is published, skipping disabled nodes

    • Reads the Authentication option of each MCP Server Trigger node, an unset option meaning None, the n8n default; an expression holding only a fixed method name counts as that method, and any other expression counts as unchecked, since its value is only known when the workflow runs

    • Reports a vulnerability when the option is None or any value other than basicAuth, bearerAuth, headerAuth, jwtAuth or n8nOAuth2; a workflow whose listing omits the published version field, or whose published version has no node list, is recorded as unreadable rather than reported as clean

    • The evidence shows a fixed Authentication option as written, for example none, and names any other expression as one the scanner could not resolve, without its text