CVE-2026-41495: n8n-MCP Logs Sensitive Request Data on Unauthorized /mcp Requests
n8n-mcp 2.47.10 and earlier, running in HTTP mode (MCP_MODE=http), writes request metadata for POST /mcp to its logs even when authentication fails. Bearer tokens, per-tenant x-n8n-key values and JSON-RPC payloads can end up in log storage. Upgrade to 2.47.11.
Published Apr 23, 2026 · Updated May 13, 2026 · Analysis Oct 29, 2026
What an attacker can do
The /mcp endpoint rejects unauthenticated requests with 401 Unauthorized, so access control holds. The flaw is that the request data was logged before or regardless of the outcome. That data includes the Authorization header, the x-n8n-key header used in multi-tenant setups, and the request body. This is CWE-532, sensitive information in a log file.
The risk sits in who can read the logs. If logs go to shared storage, a SIEM pipeline or a vendor, or if support and ops staff can read them, then those people and systems hold live credentials. A rejected request can still carry a valid token, for example from a client that mistyped the path or hit the wrong tenant. Anyone with log access can then replay the token against n8n-mcp or against the n8n tenant behind it. A remote attacker alone gains nothing directly, which is why the score is medium with low confidentiality impact.
Who is affected
n8n-mcp v2.47.10 or earlier, in HTTP transport mode with MCP_MODE=http. The stdio transport is not affected. Check the installed version:
npm ls n8n-mcpFor Docker, check the image tag you pulled from ghcr.io/czlonkowski/n8n-mcp.
n8n-mcp
- Ecosystem
- npm
- Affected
- < 2.47.11
- Fixed in
- 2.47.11
- Check
npm ls n8n-mcp
How to fix it
Upgrade to 2.47.11 or later.
npx n8n-mcp@latest
docker pull ghcr.io/czlonkowski/n8n-mcp:latestIf you cannot upgrade yet, the advisory gives two workarounds. Restrict network access to the HTTP port with a firewall, reverse proxy or VPN so only trusted clients reach it. Or switch to stdio transport with MCP_MODE=stdio, which has no HTTP surface.
After upgrading, rotate any bearer tokens and x-n8n-key values that were in use while the old version logged requests, and purge old log files where you can.
How to tell if you were hit
Search the n8n-mcp logs and any copy in your log pipeline for Authorization header values, x-n8n-key values and JSON-RPC bodies tied to POST /mcp, especially on requests that returned 401. If you find them, treat those credentials as exposed and check who had read access to those logs. Beam records MCP tool calls an AI agent makes through this server, which helps you see which agents used these credentials.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Impact
When n8n-mcp runs in HTTP transport mode, incoming requests to the POST /mcp endpoint had their request metadata written to server logs regardless of the authentication outcome. In deployments where logs are collected, forwarded to external systems, or viewable outside the request trust boundary (shared log storage, SIEM pipelines, support/ops access), this can result in disclosure of:
- bearer tokens from the
Authorizationheader - per-tenant API keys from the
x-n8n-keyheader in multi-tenant setups - JSON-RPC request payloads sent to the MCP endpoint
Access control itself was not bypassed — unauthenticated requests were correctly rejected with 401 Unauthorized — but sensitive values from those rejected requests could still be persisted in logs.
Impact category: CWE-532 (Insertion of Sensitive Information into Log File).
Affected
Deployments running n8n-mcp v2.47.10 or earlier in HTTP transport mode (MCP_MODE=http). The stdio transport is not affected.
Patched
v2.47.11 and later.
- npm:
npx n8n-mcp@latest(or pin to>= 2.47.11) - Docker:
docker pull ghcr.io/czlonkowski/n8n-mcp:latest
Workarounds
If users cannot upgrade immediately:
- Restrict network access to the HTTP port (firewall, reverse proxy, or VPN) so only trusted clients can reach the endpoint.
- Switch to stdio transport (
MCP_MODE=stdio, the default for CLI invocation), which has no HTTP surface.
Credit
n8n-MCP thanks @S4nso (Organization / Jormungandr) for reporting this issue.
Credited to S4nso.
Questions
- Does CVE-2026-41495 let an attacker bypass authentication?
No. Unauthenticated requests were still rejected with 401 Unauthorized. The problem is that sensitive values from those requests were written to logs.
- Is the stdio transport affected?
No. Only HTTP transport mode (MCP_MODE=http) is affected. The advisory lists stdio as a workaround because it has no HTTP surface.
- Which version fixes it?
n8n-mcp v2.47.11. Versions 2.47.10 and earlier are affected.
- Do I need to rotate secrets after upgrading?
If your logs were collected or readable by people outside the trust boundary, yes. Upgrading stops new logging but does not remove tokens already written to logs.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Other MCP servers and tools vulnerabilities
All Other MCP servers and tools entriesCVE-2026-102943
Dagu MCP DAG specification read bypasses path containment and workspace isolation
medium6.5Nov 10, 2026CVE-2026-102610
fast-agent: `fast-agent serve` binds HTTP to 0.0.0.0 with no authentication by default; with --shell this is unauthenticated remote command execution
medium6.4Nov 9, 2026CVE-2026-63655
tsParticles: Unbounded HTTP Request Body Buffering in @tsparticles/mcp-server Leads to Remote DoS
high7.5Nov 9, 2026CVE-2026-76892
tsParticles: Malformed JSON requests can terminate the @tsparticles/mcp-server HTTP process
high8.7Nov 9, 2026CVE-2026-76893
tsParticles: A single anonymous MCP session can monopolize HTTP mode and deny new clients
medium6.9Nov 9, 2026CVE-2026-77604
Code Graph RAG: MCP paginated read_file path traversal / arbitrary file read
high7.5Nov 9, 2026
