n8n-MCP Logs Sensitive Request Data on Unauthorized /mcp Requests
CVE-2026-41495 · GHSA-pfm2-2mhg-8wpx · published 2026-04-23 · updated 2026-05-13
- Severity
- Medium
- CVSS score
- 5.3
- Chance of exploitation (EPSS)
- 0.26%
- Fixed in
- 2.47.11
- Exploitation No known exploitation
- Automatable Yes
- Technical impact Partial
- CISA SSVC
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 Authorization header per-tenant API keys from the x-n8n-key header 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 r…
Upgrade n8n-mcp to 2.47.11 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
v2.47.11 and later. npm: npx n8n-mcp@latest (or pin to >= 2.47.11) Docker:
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.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| n8n-mcp | npm | < 2.47.11 | 2.47.11 |
- CriticalPhoenix: Format String Injection in applyChatTemplatearize-phoenix
- CriticalFlowise: Unauthenticated OAuth2 token refresh endpoint returns access tokens — enables token theft for any connected serviceflowise
- CriticalMLflow: Environment variable injection in AI Gateway secrets enables server-side credential exfiltrationmlflow
- CriticalvLLM has RCE In Video Processingvllm
- HighConfig revision hashes could expose password verifiersopenclaw
- Highn8n: Shared Credential Header Leak via HTTP Request Pagination Expressionn8n, n8n, n8n
- Criticaln8n-MCP: Cross-tenant access to workflow version backups in multi-tenant HTTP deploymentsn8n-mcp
- Highn8n-MCP: Multi-tenant MCP requests fall back to process-level n8n credentials when tenant headers are absent or incompleten8n-mcp
- Highn8n-mcp affected by path traversal, redirect-following SSRF, and telemetry payload exposuren8n-mcp
- Highn8n-mcp webhook and API client paths has an authenticated SSRFn8n-mcp
- Highn8n-mcp's IPv4-mapped IPv6 addresses bypass SSRF protection in validateUrlSync(), enabling full SSRF for SDK embeddersn8n-mcp
- Highn8n-mcp has unauthenticated session termination and information disclosure in HTTP transportn8n-mcp
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.