/

CVE-2026-86074

Severity:

HIGH RISK

(7.1)

SSRF (CWE-918) in n8n Instance AI Credentials Flow

CVE-2026-86074

Analyzed

Vulnerability type

Category:

Server-Side Request Forgery

CWE:

CWE-918

Impact:

Unauthorized Server-Side Network Requests

Severity:

HIGH RISK

(7.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A server-side request forgery vulnerability in n8n's Instance AI credential setup flow allows attacker-influenced content to affect the destination of credential tests or verification requests.

When the setup flow processes a manipulated URL, authenticated requests, redirects, or network probes may reach an unintended origin, potentially exposing sensitive services or credentials.

Affected context

The issue can occur in n8n deployments using the Instance AI credential setup flow when fetched, attacker-influenced content can affect the credential test or verification URL. The vulnerable logic does not reliably confirm that the selected URL belongs to the workflow node's expected origin before making a request.

Exploit preconditions

  • Attack surface: Instance AI credential setup and verification workflow
  • Required access: Ability to introduce or influence content processed by the setup flow; an authenticated user may also need to complete or trigger the credential setup interaction
  • Trigger point: Credential testing, verification, redirect handling, or related origin derivation
  • Why exploitation is possible: The requested URL can be influenced without sufficient validation that it matches the workflow node's trusted origin

Why this happens

The underlying flaw is insufficient server-side validation of a destination URL before the application performs a request. Origin derivation and request routing rely on attacker-influenced data without enforcing an appropriate same-origin or allowlisted-origin relationship.

This maps to CWE-918: Server-Side Request Forgery, in which application-side network functionality can be redirected toward attacker-selected or otherwise unintended resources.

Potential impact

  • The server may make authenticated requests to an unintended origin
  • Internal services or metadata endpoints could be probed
  • Response data or credential-related information could be exposed
  • Redirects could extend access beyond the initially supplied destination
  • Network boundaries and service trust relationships could be bypassed

General mitigation guidance

Mitigation generally focuses on making outbound request destinations explicit, validated, and independent of untrusted content.

Common defensive patterns include:

  • Deriving destinations from trusted server-side configuration rather than fetched content
  • Enforcing strict origin or hostname allowlists before every outbound request
  • Validating redirects and preventing transitions to unapproved origins
  • Separating credential-bearing requests from general-purpose URL fetching
  • Restricting outbound network access from application workers
  • Running services with least-privilege credentials and network permissions
  • Avoiding disclosure of detailed responses from internal or protected destinations

How teams detect issues like this

Organizations can look for SSRF risks through:

  • Static analysis rules targeting user-controlled URLs passed to HTTP clients
  • Code review checks for missing origin, hostname, scheme, port, and redirect validation
  • Tests that attempt cross-origin, internal-address, metadata-service, and redirect-based destinations
  • Network egress monitoring for unexpected requests from workflow and credential components
  • Policy enforcement requiring approved destination registries for server-side HTTP requests
  • Automated security review tools that identify tainted URL data reaching outbound request APIs

Sources

SourceLink
github.comgithub.com/n8n-io/n8n/releases/tag/n8n@2.37.7
github.comgithub.com/n8n-io/n8n/releases/tag/n8n@2.38.2
github.comgithub.com/n8n-io/n8n/security/advisories/GHSA-q5wm-mgqx-fv2f

Frequently asked

questions

It may be exploitable through the n8n application workflow when an attacker can influence content consumed by the Instance AI credential setup flow and cause a user or process to trigger the affected request.

The exact requirement depends on deployment permissions and workflow configuration. The important prerequisite is the ability to influence the destination URL or the content used to derive it.

Validate every outbound destination against a strict, server-controlled origin or hostname allowlist, and revalidate redirects before following them.

Treat all externally derived URLs as untrusted, restrict server egress, isolate credential-bearing requests, and add security tests for internal-address and cross-origin request attempts.

Find out what's already
exploitable in your codebase.