Safeguard
Vulnerability Analysis•

CVE-2026-86074: High Instance AI Credential Setup SSRF in n8n

CVE-2026-86074: n8n Instance AI credential setup accepted test URLs from other origins, risking credential leakage. Upgrade to 2.37.7 or 2.38.2.

Safeguard Security Team
3 min read

CVE-2026-86074 is a high severity flaw in n8n's Instance AI credential setup. It accepted a credential test URL without checking that it matched the workflow node's origin, so authenticated requests could reach another origin. Upgrade to 2.37.7 or 2.38.2, or disable the Instance AI module.

What's affected

  • Product: n8n, the Instance AI credential setup flow.
  • Affected: versions before 2.37.7 and before 2.38.2.
  • Fixed: 2.37.7 and 2.38.2 (both released 2 September 2026). GitHub marks 2.38.2 as a pre-release, so the stable choice is 2.37.7 or later on its line.
  • Condition from the advisory: a user must actively inject an attacker controlled URL into the setup flow.

Severity in the record: High, CVSS 7.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N). The record scores it 7.1 (High) under CVSS v3.1. The n8n GitHub advisory rates it Moderate, 5.9 under CVSS v4. Treat it as a priority if you use Instance AI credential setup.

Weakness class: CWE-918 (Server-Side Request Forgery).

How to check if you're exposed

  1. Find your version. For a global npm install, n8n --version prints it. For Docker, run docker exec my-n8n n8n --version, or read the image tag.
  2. Compare it with the fixed releases for your line, listed above.
  3. Check whether the Instance AI module is enabled. It is enabled through the N8N_ENABLED_MODULES environment variable.
  4. List credentials that were created through the Instance AI setup flow.

What to do now

  1. Upgrade to 2.37.7, 2.38.2 or later.
  2. If you cannot upgrade now and do not use it, remove instance-ai from N8N_ENABLED_MODULES.
  3. Rotate third party API credentials that were set up through the Instance AI flow on an affected version, as the advisory advises.
  4. Restrict the instance to trusted users.
  5. Tell users not to paste links from untrusted content into setup flows.

Why it matters

Credential setup sends a request to a service to check the key works. If the destination can be steered, the key goes where the attacker chooses. The advisory says content fetched from elsewhere could influence the URL after a user injected it. The patch derives the destination from the node's own URL and keeps authenticated requests, redirects and probes inside that origin. The class is server side request forgery, CWE-918.

The need for user action explains the lower vendor rating. Still, credential leakage is costly and hard to notice, which is why rotation is part of the advice. No exploitation in the wild is claimed in the record.

Quick check

Why do the sources disagree on severity?

They use different scoring versions and inputs. The record has 7.1 under CVSS v3.1, and the advisory 5.9 under CVSS v4, which counts the required user action differently.

Sources

Last reviewed: 18 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.