CVE-2026-41495: n8n-mcp: bearer tokens exposed in HTTP transport logs

GHSA-pfm2-2mhg-8wpx MEDIUM
Published April 23, 2026
CISO Take

n8n-mcp's HTTP transport mode logged all incoming request metadata—including bearer tokens and per-tenant API keys—prior to completing authentication validation, meaning every rejected probe persisted credentials in plaintext across log infrastructure. With 16 downstream dependents, 75 prior CVEs in the same package, and an OpenSSF score of only 6.1/10, this package carries an elevated supply-chain risk profile; its 86th-percentile EPSS ranking signals above-average exploitation interest relative to the broader CVE population. Any deployment forwarding logs to a SIEM, shared log aggregator, or third-party observability platform should treat those log stores as potentially compromised and rotate all bearer tokens and x-n8n-key API keys immediately upon patching to version 2.47.11.

Sources: NVD GitHub Advisory EPSS OpenSSF ATLAS

What is the risk?

Medium severity (CVSS 5.3) with no active exploitation confirmed and no public exploit available. However, attack complexity is low—no authentication required to trigger the credential-logging behavior—and the real risk multiplier is log forwarding architecture: any pipeline routing logs to a SIEM, centralized aggregator, or shared ops tooling effectively broadcasts credentials to every party with log read access. In multi-tenant deployments, per-tenant API keys from all tenants are exposed simultaneously, amplifying blast radius beyond a single-tenant compromise.

How does the attack unfold?

Credential Exposure Trigger
Any HTTP request to the POST /mcp endpoint—including unauthenticated probes—causes the server to write full request metadata including Authorization and x-n8n-key headers to logs before authentication validation completes.
AML.T0055
Log Access
Adversary gains read access to log storage via SIEM access, shared ops tooling, log aggregator breach, or insider access to support systems that receive forwarded application logs.
AML.T0036
Credential Harvest
Attacker searches logs for Authorization header and x-n8n-key patterns to extract bearer tokens and per-tenant API keys in plaintext, potentially capturing credentials from multiple tenants simultaneously.
AML.T0025
Authenticated API Access
Harvested credentials are replayed against the n8n-mcp HTTP API to authenticate as legitimate users, granting full access to n8n node operations, workflow automation capabilities, and AI agent tool invocations.
AML.T0012

What systems are affected?

Package Ecosystem Vulnerable Range Patched
n8n npm < 2.47.11 2.47.11
193.4K OpenSSF 6.6 Pushed 4d ago 54% patched ~7d to patch Full package profile →

Do you use n8n? You're affected.

How severe is it?

CVSS 3.1
5.3 / 10
EPSS
0.3%
chance of exploitation in 30 days
Higher than 17% of all CVEs
Exploitation Status
No known exploitation
Sophistication
Trivial

What is the attack surface?

AV AC PR UI S C I A
AV Network
AC Low
PR None
UI None
S Unchanged
C Low
I None
A None

What should I do?

5 steps
  1. Patch immediately: upgrade n8n-mcp to version 2.47.11, which redacts sensitive headers prior to log writes.

  2. Rotate all credentials: invalidate and reissue all bearer tokens and x-n8n-key API keys that may have transited the MCP endpoint.

  3. Audit historical logs: search log stores for 'Authorization: Bearer' and 'x-n8n-key' patterns—any matches should be treated as compromised.

  4. Restrict log access: enforce least-privilege on log storage and SIEM pipelines until credential rotation is confirmed complete.

  5. Workaround (if patching is delayed): switch n8n-mcp to stdio transport mode instead of HTTP, which does not exhibit this logging behavior.

What does CISA's SSVC say?

Decision Track
Exploitation none
Automatable Yes
Technical Impact partial

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:

EU AI Act
Article 9 - Risk Management System
ISO 42001
A.8.2 - Information security in AI system lifecycle
NIST AI RMF
MEASURE 2.5 - AI System Monitoring
OWASP LLM Top 10
LLM02:2025 - Sensitive Information Disclosure

Frequently Asked Questions

What is CVE-2026-41495?

n8n-mcp's HTTP transport mode logged all incoming request metadata—including bearer tokens and per-tenant API keys—prior to completing authentication validation, meaning every rejected probe persisted credentials in plaintext across log infrastructure. With 16 downstream dependents, 75 prior CVEs in the same package, and an OpenSSF score of only 6.1/10, this package carries an elevated supply-chain risk profile; its 86th-percentile EPSS ranking signals above-average exploitation interest relative to the broader CVE population. Any deployment forwarding logs to a SIEM, shared log aggregator, or third-party observability platform should treat those log stores as potentially compromised and rotate all bearer tokens and x-n8n-key API keys immediately upon patching to version 2.47.11.

Is CVE-2026-41495 actively exploited?

No confirmed active exploitation of CVE-2026-41495 has been reported, but organizations should still patch proactively.

How to fix CVE-2026-41495?

1. Patch immediately: upgrade n8n-mcp to version 2.47.11, which redacts sensitive headers prior to log writes. 2. Rotate all credentials: invalidate and reissue all bearer tokens and x-n8n-key API keys that may have transited the MCP endpoint. 3. Audit historical logs: search log stores for 'Authorization: Bearer' and 'x-n8n-key' patterns—any matches should be treated as compromised. 4. Restrict log access: enforce least-privilege on log storage and SIEM pipelines until credential rotation is confirmed complete. 5. Workaround (if patching is delayed): switch n8n-mcp to stdio transport mode instead of HTTP, which does not exhibit this logging behavior.

What systems are affected by CVE-2026-41495?

This vulnerability affects the following AI/ML architecture patterns: agent frameworks, MCP servers, workflow automation, multi-tenant AI platforms.

What is the CVSS score for CVE-2026-41495?

CVE-2026-41495 has a CVSS v3.1 base score of 5.3 (MEDIUM). The EPSS exploitation probability is 0.26%.

What is the AI security impact?

Affected AI Architectures

agent frameworksMCP serversworkflow automationmulti-tenant AI platforms

MITRE ATLAS Techniques

AML.T0012 Valid Accounts
AML.T0025 Exfiltration via Cyber Means
AML.T0036 Data from Information Repositories
AML.T0055 Unsecured Credentials

Compliance Controls Affected

EU AI Act: Article 9
ISO 42001: A.8.2
NIST AI RMF: MEASURE 2.5
OWASP LLM Top 10: LLM02:2025

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.11, 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 rejected requests could still be persisted in logs. This issue has been patched in version 2.47.11.

Exploitation Scenario

An adversary with read access to any log aggregation system receiving n8n-mcp HTTP transport logs—a SIEM operator account, shared ops tooling, or a third-party log storage breach—scans for Authorization header values in the POST /mcp endpoint logs. Because unauthenticated requests are logged with full headers before rejection, the attacker does not need to successfully authenticate to generate loggable credential entries; they simply send probing requests to the endpoint. Once bearer tokens or x-n8n-key values are extracted from logs, the adversary replays them against the MCP HTTP API to authenticate as legitimate users, gaining full access to n8n node operations and the ability to invoke AI agent tool calls within connected workflows.

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:N/UI:N/S:U/C:L/I:N/A:N

Timeline

Published
April 23, 2026
Last Modified
May 8, 2026
First Seen
April 23, 2026

Related Vulnerabilities