NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Other MCP servers and tools

CVE-2026-42282: n8n-MCP: Sensitive MCP tool-call arguments logged on authenticated requests in HTTP mode

mediumCVSS 3.1 4.3GHSA-wg4g-395p-mqv3

n8n-mcp 2.47.12 and earlier, run in HTTP mode (`MCP_MODE=http`), wrote the full arguments of every authenticated `tools/call` request to the server logs. A call to `n8n_manage_credentials` could leave raw credentials in those logs. Upgrade to n8n-mcp 2.47.13, or switch to stdio mode. Stdio mode is not affected in practice.

Published Apr 25, 2026 · Updated May 13, 2026 · Analysis Oct 29, 2026

What an attacker can do

In HTTP transport mode, the request dispatcher and several sibling code paths logged the complete JSON-RPC params of each tools/call request before any redaction. When a tool call carries secrets, the raw values reach the log. The clearest case is n8n_manage_credentials.data. Tool arguments can also hold bearer tokens, OAuth credentials, per-tenant API keys and webhook auth headers.

The log file is the exposure. Anyone who can read it can recover the secrets: operators with shared log storage, a SIEM pipeline that forwards logs to external systems, or support staff with read-only access. The advisory notes that a console-silencing layer in HTTP mode reduces the runtime exposure, but calls that layer fragile, since the values are still built and passed to the logger.

The flaw needs authentication. The caller must present an accepted AUTH_TOKEN, so unauthenticated users cannot trigger it. It is a confidentiality issue only (CWE-532, CVSS 3.1 score 4.3). In a team where an AI agent creates n8n credentials through this MCP server, each credential it sets can end up in plain text in log storage.

Who is affected

n8n-mcp v2.47.12 and earlier in HTTP transport mode (MCP_MODE=http). The stdio transport, which is the default for CLI invocation, short-circuits the relevant log calls and is not affected in practice.

npm ls n8n-mcp

For Docker, check the image tag you pull from ghcr.io/czlonkowski/n8n-mcp.

n8n-mcp

Ecosystem
npm
Affected
< 2.47.13
Fixed in
2.47.13
Check
npm ls n8n-mcp

How to fix it

Upgrade to n8n-mcp 2.47.13 or later:

npx n8n-mcp@latest
docker pull ghcr.io/czlonkowski/n8n-mcp:latest

The patch sends tool-call arguments through summarizeToolCallArgs, which records only the type, top-level key names and approximate size, never values. The same pattern was applied earlier to HTTP request bodies in GHSA-pfm2-2mhg-8wpx. Workarounds if you cannot upgrade:

  • Restrict the HTTP port with a firewall, reverse proxy or VPN so only trusted clients can authenticate.
  • Restrict access to the logs, with no shared SIEM ingestion or support read access.
  • Switch to stdio transport with MCP_MODE=stdio.

After upgrading, rotate any credentials that passed through the server while it ran an affected version.

How to tell if you were hit

Search your n8n-mcp logs, and any system that collects them, for tools/call entries that include argument values. Look for n8n_manage_credentials calls with a data object, and for strings like bearer tokens, API keys and webhook headers. Check who has read access to the log store and whether the logs were forwarded elsewhere. After the fix, log lines should show only argument types, key names and sizes.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

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. The fix removes the leak at the source.

Impact category: CWE-532 (Insertion of Sensitive Information into Log File). CVSS 3.1 score: 4.3 Medium (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N).

Affected

Deployments running n8n-mcp v2.47.12 or earlier in HTTP transport mode (MCP_MODE=http). The stdio transport short-circuits the relevant log calls and is not affected in practice.

Patched

v2.47.13 and later.

  • npm: npx n8n-mcp@latest (or pin to >= 2.47.13)
  • Docker: docker pull ghcr.io/czlonkowski/n8n-mcp:latest

The patch routes tool-call arguments through a metadata-only summarizer (summarizeToolCallArgs) that records type, top-level key names, and approximate size — never values. The same pattern was adopted earlier for HTTP request bodies in GHSA-pfm2-2mhg-8wpx.

Workarounds

If developers cannot upgrade immediately:

  • Restrict access to the HTTP port (firewall, reverse proxy, or VPN) so only trusted clients can authenticate.
  • Restrict access to server logs (no shared SIEM ingestion, no support read-only access) until the upgrade lands.
  • Switch to stdio transport (MCP_MODE=stdio, the default for CLI invocation), which has no HTTP surface and short-circuits the affected log calls.

Credit

n8n-MCP thanks @Mirr2 (Organization / Jormungandr) for reporting this issue.

Credited to Mirr2.

Questions

Can an unauthenticated user exploit CVE-2026-42282?

No. The leak happens on authenticated tools/call requests, so the caller needs an accepted AUTH_TOKEN. The risk is to whoever can read the logs afterwards.

Does stdio mode leak credentials?

Not in practice. The advisory says stdio transport short-circuits the relevant log calls and has no HTTP surface.

Do I need to rotate credentials after upgrading?

The advisory does not say so. Because raw values could have been written to logs, rotating credentials that passed through an affected HTTP deployment is prudent.

Which version fixes it?

n8n-mcp 2.47.13. It logs only argument types, key names and approximate sizes.

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 entries