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

CVE-2026-42449: n8n-mcp's IPv4-mapped IPv6 addresses bypass SSRF protection in validateUrlSync(), enabling full SSRF for SDK embedders

highCVSS 3.1 8.5GHSA-56c3-vfp2-5qqj

n8n-mcp 2.47.4 through 2.47.13 has an SSRF bypass for applications that embed it as an SDK. SSRFProtection.validateUrlSync() had no IPv6 checks, so a host like [::ffff:169.254.169.254] reached cloud metadata, private networks and localhost. Upgrade to 2.47.14.

Published Apr 30, 2026 · Updated May 11, 2026 · Analysis Nov 4, 2026

What an attacker can do

The synchronous validator SSRFProtection.validateUrlSync() checked only IPv4 forms. An IPv4-mapped IPv6 literal, such as [::ffff:169.254.169.254] or ::ffff:127.0.0.1, slipped past the metadata, localhost and private-range checks. The SDK paths that use it are the N8NDocumentationMCPServer constructor, getN8nApiClient() and validateInstanceContext().

Someone who can supply the n8nApiUrl value can make the server send HTTP requests to AWS, GCP, Azure, Alibaba and Oracle metadata endpoints, RFC1918 networks and local services. It is a non-blind SSRF: response bodies come back to the caller. The server also forwards the n8nApiKey in the x-n8n-api-key header to the chosen target, so the attacker's own host receives the key. Platform credentials from metadata services are the main prize.

The reporter limits scope to embedders that pass user-supplied InstanceContext. The project's own HTTP server deployment was not primarily affected, because a second async validator, validateWebhookUrl, catches IPv6 addresses. If your integration builds the URL from internal configuration only, it is not reachable. CVSS 3.1 is 8.5 (scope changed).

Who is affected

The npm package n8n-mcp from 2.47.4 up to but not including 2.47.14, in deployments that use N8NDocumentationMCPServer or N8NMCPEngine as an SDK with a user-supplied InstanceContext. Check:

npm ls n8n-mcp

For Docker, check the tag of ghcr.io/czlonkowski/n8n-mcp.

n8n-mcp

Ecosystem
npm
Affected
>= 2.47.4, < 2.47.14
Fixed in
2.47.14
Check
npm ls n8n-mcp

How to fix it

Upgrade to n8n-mcp 2.47.14 or later.

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

The fix adds isPrivateOrMappedIpv6 to validateUrlSync. It blocks ::/96 (loopback, IPv4-mapped, IPv4-compatible), link-local, site-local, unique-local, 6to4 and NAT64 ranges, and the webhook validator now uses the same helper. Workarounds from the advisory: reject any n8nApiUrl whose hostname is an IP literal before calling the SDK, block egress from the process to RFC1918, 169.254.0.0/16 and metadata endpoints, and do not accept user-controlled n8nApiUrl values.

How to tell if you were hit

Review the n8nApiUrl values your integration has accepted, looking for bracketed IPv6 hosts or ::ffff: forms. Check egress and proxy logs from the n8n-mcp process for requests to 169.254.169.254, other metadata hostnames, RFC1918 addresses or loopback. Review cloud audit logs for use of instance-role credentials from unexpected places, and rotate any n8n API key that may have been sent to a foreign target.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

In 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 (AWS IMDS, GCP, Azure, Alibaba, Oracle), 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.

The first-party HTTP server deployment was not primarily affected — it has a second async validator (validateWebhookUrl) that catches IPv6 addresses.

Impact category: CWE-918 (Server-Side Request Forgery).

Affected

Deployments embedding n8n-mcp as an SDK using N8NDocumentationMCPServer or N8NMCPEngine with user-supplied InstanceContext on versions v2.47.4 through v2.47.13.

Patched

v2.47.14 and later.

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

Workarounds

If developers cannot upgrade immediately:

  • Validate URLs before passing to the SDK — reject any n8nApiUrl whose hostname is an IP literal (bracketed IPv6 or dotted IPv4) before calling N8NDocumentationMCPServer / getN8nApiClient(). Accept only URLs with DNS-resolvable hostnames.
  • Restrict egress at the network layer — block outbound traffic from the n8n-mcp process to RFC1918 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), link-local 169.254.0.0/16, and cloud metadata endpoints. Defense-in-depth against this class of issue and recommended even after upgrading.
  • Do not accept user-controlled `n8nApiUrl` values — if the project's integration derives the URL from internal configuration only, this vulnerability is not reachable.

Upgrading to v2.47.14 is still strongly recommended.

Credit

Reported by @manthanghasadiya.

Credited to manthanghasadiya.

Questions

Is the standard n8n-mcp HTTP server affected by CVE-2026-42449?

Not primarily. The advisory says the first-party HTTP server has a second async validator, validateWebhookUrl, that catches IPv6. The SDK embedder path is the exposed one.

What leaks besides response bodies?

The n8nApiKey, which is forwarded in the x-n8n-api-key header to whatever host the attacker supplied.

Can I avoid upgrading?

The advisory offers workarounds: reject IP-literal hosts, restrict egress and avoid user-controlled n8nApiUrl. It still strongly recommends 2.47.14.

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