CVE-2026-42282: n8n-MCP: credential logging exposes OAuth tokens in HTTP mode
MEDIUMn8n-MCP's HTTP transport mode wrote raw MCP tool arguments — including bearer tokens, OAuth credentials, and API keys passed to n8n_manage_credentials — directly to server logs before any redaction occurred. For organizations running AI assistants that manage n8n workflow integrations, every credential-bearing tool call may have been silently persisted in log aggregators, SIEM pipelines, or shared log storage accessible to ops and support staff. While EPSS data is unavailable and no public exploits exist, the passive exposure is the core threat: credentials may already be sitting in your log infrastructure from prior tool calls. Patch immediately to v2.47.13 and rotate any n8n credentials that were handled via MCP tool calls in HTTP mode.
What is the risk?
CVSS 4.3 (Medium) understates operational risk for AI-heavy deployments. The authentication requirement limits the initial trigger surface to privileged callers, but the logging flaw means credential material accumulates passively over time — the longer before patching, the larger the exposed credential set. In agentic pipelines where n8n manages OAuth integrations with Slack, GitHub, CRMs, and cloud platforms, compromised credentials enable significant lateral movement well beyond the n8n perimeter. No KEV listing, no public exploit code, and no EPSS data reduce immediate urgency, but the trivial exploitation path once log access is obtained warrants prompt patching and credential rotation.
How does the attack unfold?
How severe is it?
What is the attack surface?
What should I do?
6 steps-
Upgrade n8n-mcp to v2.47.13 immediately — the patch introduces argument redaction before the logging layer.
-
Audit application logs from all n8n-MCP HTTP mode instances for raw credential values (search for 'n8n_manage_credentials', bearer token patterns, OAuth token formats, API key prefixes).
-
Rotate all n8n credentials that may have been passed as MCP tool arguments — OAuth tokens, API keys, webhook secrets.
-
If immediate patching is not possible, switch to stdio transport mode as a temporary workaround since it is not affected.
-
Review log access controls and restrict who can read application logs containing MCP request data.
-
Check SIEM forwarding rules and retention policies to identify whether credential-bearing log entries were shipped to external systems and for how long.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-42282?
n8n-MCP's HTTP transport mode wrote raw MCP tool arguments — including bearer tokens, OAuth credentials, and API keys passed to n8n_manage_credentials — directly to server logs before any redaction occurred. For organizations running AI assistants that manage n8n workflow integrations, every credential-bearing tool call may have been silently persisted in log aggregators, SIEM pipelines, or shared log storage accessible to ops and support staff. While EPSS data is unavailable and no public exploits exist, the passive exposure is the core threat: credentials may already be sitting in your log infrastructure from prior tool calls. Patch immediately to v2.47.13 and rotate any n8n credentials that were handled via MCP tool calls in HTTP mode.
Is CVE-2026-42282 actively exploited?
No confirmed active exploitation of CVE-2026-42282 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-42282?
1. Upgrade n8n-mcp to v2.47.13 immediately — the patch introduces argument redaction before the logging layer. 2. Audit application logs from all n8n-MCP HTTP mode instances for raw credential values (search for 'n8n_manage_credentials', bearer token patterns, OAuth token formats, API key prefixes). 3. Rotate all n8n credentials that may have been passed as MCP tool arguments — OAuth tokens, API keys, webhook secrets. 4. If immediate patching is not possible, switch to stdio transport mode as a temporary workaround since it is not affected. 5. Review log access controls and restrict who can read application logs containing MCP request data. 6. Check SIEM forwarding rules and retention policies to identify whether credential-bearing log entries were shipped to external systems and for how long.
What systems are affected by CVE-2026-42282?
This vulnerability affects the following AI/ML architecture patterns: AI agent orchestration platforms, MCP-based agent frameworks, n8n workflow automation with AI integrations, SIEM-connected agentic deployments, Multi-tenant log aggregation environments.
What is the CVSS score for CVE-2026-42282?
CVE-2026-42282 has a CVSS v3.1 base score of 4.3 (MEDIUM). The EPSS exploitation probability is 0.25%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0053 AI Agent Tool Invocation AML.T0055 Unsecured Credentials AML.T0083 Credentials from AI Agent Configuration AML.T0085.001 AI Agent Tools Compliance Controls Affected
What are the technical details?
Original Advisory
n8n-MCP is an MCP server that provides AI assistants access to n8n node documentation, properties, and operations. Prior to version 2.47.13, when n8n-mcp runs in HTTP transport mode, authenticated MCP tools/call requests had their full arguments and JSON-RPC params written to server logs by the request dispatcher and several sibling code paths before any redaction. When a tool call carries credential material — most notably n8n_manage_credentials.data — the raw values can be persisted in logs. 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 and OAuth credentials sent through n8n_manage_credentials, per-tenant API keys and webhook auth headers embedded in tool arguments, arbitrary secret-bearing payloads passed to any MCP tool. The issue requires authentication (AUTH_TOKEN accepted by the server), so unauthenticated callers cannot trigger it; the runtime exposure is also reduced by an existing console-silencing layer in HTTP mode, but that layer is fragile and the values are still constructed and passed into the logger. This issue has been patched in version 2.47.13.
Exploitation Scenario
An insider or attacker with read access to centralized log storage searches application logs from the n8n-MCP HTTP server. Because each authenticated MCP tool call to n8n_manage_credentials logged the full JSON-RPC payload, the attacker finds raw OAuth tokens and API keys for every n8n credential managed via the AI assistant. With no AI knowledge required, they extract the credential material using simple log search queries and authenticate directly to integrated third-party services — Slack workspaces, GitHub organizations, CRM platforms, or cloud infrastructure — pivoting laterally well beyond the n8n environment. The attack is entirely passive from the victim's perspective: the credentials were already written to logs during normal AI assistant operation.
Weaknesses (CWE)
CWE-532 — Insertion of Sensitive Information into Log File: The product writes sensitive information to a log file.
- [Architecture and Design, Implementation] Consider seriously the sensitivity of the information written into log files. Do not write secrets into the log files.
- [Distribution] Remove debug log files before deploying the application into production.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N References
Timeline
Related Vulnerabilities
CVE-2025-5120 10.0 smolagents: sandbox escape enables unauthenticated RCE
Same attack type: Data Leakage CVE-2025-53767 10.0 Azure OpenAI: SSRF EoP, no auth required (CVSS 10)
Same attack type: Data Extraction CVE-2025-2828 10.0 LangChain RequestsToolkit: SSRF exposes cloud metadata
Same attack type: Data Extraction CVE-2023-3765 10.0 MLflow: path traversal allows arbitrary file read
Same attack type: Data Leakage CVE-2026-21858 10.0 n8n: Input Validation flaw enables exploitation
Same attack type: Data Extraction