n8n-mcp IPv4-mapped IPv6 SSRF bypass | High || Field | Value |
|---|---|
| CVE / NVD | CVE-2026-42449 |
| EPSS score | 0.002060000 (FIRST EPSS, 2026-06-30) |
| Date (index) | 2026-05-07 |
| Affected product (index) | n8n-mcp |
| GHSA ID | GHSA-56c3-vfp2-5qqj |
| OWASP MCP Top 10 (2025) | MCP05 — Command Injection & Execution |
| Published / disclosed | 2026-05-07 |
| Ecosystem | npm |
| Component | n8n-mcp |
| CVSS score | High — 8.5 — CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N (NVD CVSS 3.1) |
| CWE | CWE-918 |
| Affected versions | n8n-mcp 2.47.4 through 2.47.13 in affected SDK embedder paths (per NVD) |
| Fixed versions | 2.47.14 and later (per NVD) |
| Fix status | Patched (per NVD description) |
| Exploit status | Public CVE record |
| Notes | Details below are aligned to the English NVD description at indexing time; re-check NVD for CNA updates. |
n8n-MCP is an MCP server that provides AI assistants access to n8n node documentation, properties, and operations. In versions 2.47.4 through 2.47.13, the SDK embedder path (N8NDocumentationMCPServer constructor, getN8nApiClient(), and validateInstanceContext()), the synchronous URL validator in SSRFProtection.validateUrlSync() had no IPv6 checks. IPv4-mapped IPv6 addresses such as http://[::ffff:169.254.169.254] bypassed the cloud-metadata, localhost, and private-IP range checks. An attacker able to supply an n8nApiUrl value could cause the server to issue HTTP requests to cloud metadata endpoints, RFC1918 private networks, or localhost services. Response bodies are returned to the caller (non-blind SSRF), and the n8nApiKey is forwarded in the x-n8n-api-key header to the attacker-controlled target. Projects with deployments embedding n8n-mcp as an SDK using N8NDocumentationMCPServer or N8NMCPEngine with user-supplied InstanceContext are affected. The first-party HTTP server deployment was not primarily affected — it has a second async validator (validateWebhookUrl) that catches IPv6 addresses. This issue has been fixed in version 2.47.14. If users are unable to upgrade immediately as a workaround they can validate URLs before passing to the SDK, restrict egress at the network layer, and reject user-controlled n8nApiUrl values.
Depends on deployment: many MCP issues require a reachable HTTP/SSE listener, a malicious remote MCP server, a poisoned project/workspace config, or a victim opening attacker-influenced content. Treat developer workstations and shared CI runners as high-value targets when MCP servers run with host access.
See the NVD description and linked references for the upstream root cause; CWE rows above summarize the weakness mapping published by NVD.
MCP extends an agent’s reach into tools, hosts, and cloud APIs. Failures in transport authentication, logging, URL validation, session binding, or local config loading frequently become RCE, credential theft, SSRF, or session hijacking in MCP-shaped deployments.
Add a minimal vulnerable code snippet here after reviewing the linked upstream commit / tag diff (do not paste weaponized payloads).
Upgrade to vendor-fixed versions where available, reduce network exposure (bind to localhost, require auth on HTTP transports), and apply standard MCP deployment hygiene (tool allowlists, egress controls, separate secrets from logs).
references for commits, tags, and release notes.
If a public PoC exists, prefer vendor advisories and defensive write-ups; do not host weaponized exploit code in this repository.
Track NVD references for CVE-2026-42449 and apply the upstream patched release/commit recommended by the vendor/CNA.