---
id: "CVE-2026-126388"
page: "https://infrastack.ai/live/CVE-2026-126388"
kind: "vulnerability"
aliases: ["CVE-2026-126388"]
title: "n8n: cross-origin redirects leak stored workflow credentials to attacker endpoints"
severity: "medium"
cvss: 6.3
epss: null
exploited: false
status: "open"
category: "ai-tooling"
products: []
ecosystems: []
tags: ["ai-agents", "ai-tooling", "n8n", "self-hosted", "workflow-automation"]
not_affected_if: ["no-expression-fed-urls", "version-2.46.1-or-later"]
published_at: "2026-11-13T10:17:42+00:00"
first_seen_at: "2026-11-13T10:47:18+00:00"
updated_at: "2026-11-13T10:55:23+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126388", "first_seen_at": "2026-11-13T10:47:18+00:00"}]
exploit_sources: []
---

# n8n: cross-origin redirects leak stored workflow credentials to attacker endpoints

Link for people: https://infrastack.ai/live/CVE-2026-126388 (this .md is for agents)

n8n before 2.46.1 forwards Authorization headers and basic auth credentials when a request is redirected to a different origin, because the sendCredentialsOnCrossOriginRedirect setting defaults to true. An attacker who controls a redirect target or an expression-fed URL in a credential-using node can capture the stored workflow credentials.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the n8n version with `n8n --version` or the image tag; versions below `2.46.1` are in range.
- Look for the `sendCredentialsOnCrossOriginRedirect` setting in the n8n environment or configuration and see whether it is still `true`.
- Review workflows whose HTTP or credential-using nodes take URLs from expressions or external input.

## Fix

- n8n: upgrade to `2.46.1` or later (per the sources' fixed version).

## Timeline

- 2026-11-13T10:47:18+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-126388

## Documents

- [advisory] Maintainer's advisory: github.com https://github.com/n8n-io/n8n/security/advisories/GHSA-prmc-fg87-r4gh
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/n8n-before-2.46.1-credential-leak-via-cross-origin-redirects-in-nodes

## From the sources

n8n before 2.46.1 contains a credential exposure vulnerability that forwards Authorization headers and basic auth credentials on cross-origin redirects because sendCredentialsOnCrossOriginRedirect defaults to true. Attackers controlling a redirect target or an expression-fed URL in credential-using nodes can capture stored workflow credentials sent to their endpoint.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
