Skip to main content

n8n-mcp CVE-2026-41495

MEDIUM
Insertion of Sensitive Information into Log File (CWE-532)
2026-04-23 https://github.com/czlonkowski/n8n-mcp GHSA-pfm2-2mhg-8wpx
5.3
CVSS 3.1 · Vendor: https://github.com/czlonkowski/n8n-mcp
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send HTTP POST request to /mcp endpoint
  2. Delivery
    Request metadata logged to server logs
  3. Exploit
    Credentials extracted from logged Authorization/x-n8n-key headers
  4. Execution
    Request rejected with 401 Unauthorized
  5. Persist
    Attacker/insider retrieves logs from centralized system
  6. Impact
    Credentials used for unauthorized access

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A09:2025 - Security Logging & Alerting Failures
ASVS 5.0
V16 - Security Logging and Error Handling Log data sanitization
Exploitation Conditions

The vulnerability exists only in deployments with MCP_MODE=http explicitly enabled; the default stdio transport is not affected. Exploitation requires the application to be accessible over the network and logs to be viewable by or forwarded to systems outside the request's trust boundary. Specifically: (1) The application must be running n8n-mcp v2.47.10 or earlier; (2) HTTP transport mode must be active (MCP_MODE=http); (3) An attacker must be able to send HTTP requests to the POST /mcp endpoint (network reachability); (4) Server logs must be collected, forwarded, or stored in a location accessible to the attacker or a privileged insider (e.g., centralized SIEM, cloud logging service, shared filesystem, or support access). The vulnerability does NOT require valid credentials, successful authentication, or bypassing access control - authentication is correctly enforced and requests are properly rejected. The sensitive data leaks as an unavoidable side effect of the logging framework writing metadata before the authentication middleware runs. Deployments with isolated log files, no log aggregation, and restricted file access have significantly lower risk; those with centralized logging and broad team access face higher risk of credential disclosure.

Impact

The CVSS 5.3 score reflects network-accessible unauthenticated attack surface (AV:N/AC:L/PR:N/UI:N) with low confidentiality impact and no integrity or availability impact. However, real-world risk depends critically on log aggregation and visibility. In many modern deployments, logs are automatically collected to centralized SIEM systems, cloud logging services (CloudWatch, Stackdriver), or shared storage accessible to support and operations teams, significantly expanding the trust boundary beyond the application itself. The vulnerability is not a typical auth bypass; access control functions correctly and returns 401 Unauthorized. Instead, it is an information disclosure flaw where sensitive values leak as a side effect of the correct rejection. EPSS data not provided, but the low CVSS combined with the requirement that logs be exposed to an attacker suggests moderate real-world exploitation probability in environments with permissive log access. No CISA KEV listing or public exploit code identified. Organizations with strict log access controls and short log retention windows face lower risk; those with centralized logging visible to many teams face higher risk. The presence of an available patch with immediate availability (v2.47.11) suggests the vendor prioritized remediation.

Exploit ScenarioDerived

An attacker sends a series of HTTP POST requests to the /mcp endpoint with crafted Authorization headers containing valid-looking bearer tokens or x-n8n-key headers with multi-tenant API keys. The application correctly rejects these unauthenticated requests with 401 responses, so no unauthorized access is granted. However, because the request metadata (including headers) is logged before authentication validation, the attacker's bearer tokens and API keys are written to the server's logs. If those logs are forwarded to a centralized SIEM system, cloud logging service, or shared log storage visible to support staff or other teams outside the security boundary, the attacker or an insider with log access can retrieve the credentials and use them for lateral movement or data exfiltration.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 23, 2026

n8n-mcp v2.47.10 and earlier in HTTP transport mode logs sensitive authentication credentials and request metadata regardless of authentication outcome, allowing disclosure of bearer tokens, API keys, and JSON-RPC payloads to any system with access to server logs. While access control correctly rejects unauthenticated requests with 401 responses, the sensitive data from those rejected requests is persisted in logs before authentication is enforced, creating an information disclosure vulnerability (CWE-532) with CVSS 5.3 (low confidentiality impact). No public exploit code or active exploitation is documented; patch is available in v2.47.11.

RemediationAI

Upgrade to n8n-mcp v2.47.11 or later immediately using npm install n8n-mcp@latest or npm install n8n-mcp@>=2.47.11, or pull the patched Docker image via docker pull ghcr.io/czlonkowski/n8n-mcp:latest. If immediate upgrade is not possible, apply one of two workarounds: (1) Restrict network access to the HTTP port using firewall rules, reverse proxy authentication, or VPN, ensuring only trusted clients within your organization's network can reach the POST /mcp endpoint - this prevents external attackers from sending malicious requests whose metadata would be logged, though internal threats and log visibility remain a concern; or (2) Switch to stdio transport mode by setting MCP_MODE=stdio (the default for CLI invocation), which eliminates the HTTP surface entirely and removes the network exposure vector, though this may require changes to your deployment architecture if HTTP transport is relied upon for client communication. Note that neither workaround addresses the underlying logging issue if it exists in stdio mode or if internal requests are logged - upgrade is the only complete fix.

Affected Packages

npm n8n-mcp fix: 2.47.11

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

n8n-mcp is a Node.js-based Model Context Protocol (MCP) server implementation used for integrating AI models with n8n workflows. The vulnerability exists in the HTTP transport mode (MCP_MODE=http), which exposes a POST /mcp endpoint for receiving JSON-RPC requests. The root cause is premature logging of entire request metadata (including headers) before authentication validation occurs. In HTTP transport, the server logs incoming request details at the framework or middleware level before reaching authentication middleware that checks the Authorization header (bearer tokens) or x-n8n-key header (multi-tenant API keys). The stdio transport variant (default for CLI) is unaffected because it does not have an HTTP surface exposed to untrusted network clients. This is a classic timing-of-check vulnerability where sensitive data is logged during request processing before authentication gates determine whether the request should be trusted.

Know when Docker gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/czlonkowski/n8n-mcp) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Primary rating from Vendor (https://github.com/czlonkowski/n8n-mcp) · only source for this CVE.

CVSS VectorVendor: https://github.com/czlonkowski/n8n-mcp

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch released
Apr 24, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 23, 2026 - 14:31 nvd
MEDIUM 5.3

DescriptionCVE.org

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 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.

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 86% exploitable
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

pkg:npm/n8n-mcp

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy