CVE-2026-59208: n8n Token Exchange Cross-Issuer Account Confusion
CVE-2026-59208: n8n matched token-exchange logins on the JWT sub claim alone until 2.27.4 and 2.28.1. What the fix stores, what to check after upgrading, and two later fixes.
Primary source: authoritative reference
CVE-2026-59208 is an account-binding flaw in n8n's token exchange module. Before 2.27.4, and in 2.28.0, n8n looked up the local account for an external JWT by its sub claim alone. On an instance that trusted more than one issuer, a valid token from one issuer could therefore sign in as the account that another issuer's user had already linked under the same sub. Signature and issuer verification were not broken. The issuer was verified and then left out of the account lookup.
Upgrade to 2.27.4, 2.28.1, or later to close this CVE. Three things are not in the advisory and matter if you run token exchange:
- The fix changes what n8n stores as the identity key, from the bare
subtosha256(iss)::sub. Rows written before the upgrade keep the old key. - Old rows are migrated automatically only while the instance trusts exactly one issuer. With several issuers, which is the configuration this CVE is about, an existing user is matched again by email or not at all.
- n8n published two more High-severity advisories for the same module a month later. An instance that uses token exchange or embed login needs at least 2.31.5 or 2.32.1 to have all three fixes.
Each point is covered below with links to the source.
CVE-2026-59208 at a glance
Checked against the primary sources on November 28, 2026.
| Item | Verified information |
|---|---|
| Component | n8n token exchange module, IdentityResolutionService.resolve() in packages/cli/src/modules/token-exchange/services/identity-resolution.service.ts |
| Weakness | CWE-287 (Improper Authentication) and CWE-346 (Origin Validation Error) from the CNA; NVD lists CWE-346 |
| Affected versions | Below 2.27.4, and 2.28.0 (CVE record and GitHub Advisory Database) |
| Fixed versions | 2.27.4 and 2.28.1, both released June 24, 2026 |
| CNA score (GitHub) | CVSS 4.0 base 7.6, High: AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| NVD score | CVSS 3.1 base 6.8, Medium: AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N. Status Analyzed, last modified October 25, 2026 |
| CISA SSVC (July 14, 2026) | Exploitation: none. Automatable: no. Technical impact: total |
| CISA KEV | Not listed in catalog version 2026.11.27 |
| EPSS | 0.00265, percentile 0.11418 (November 27, 2026) |
| Publication | n8n repository advisory June 24, 2026; CVE record July 9, 2026; GitHub Advisory Database July 22, 2026 |
The two scores differ mainly in how they express the precondition. The CNA's CVSS 4.0 vector uses "attack requirements: present" for the multi-issuer setup. CVSS 3.1 has no such metric, and NVD's vector has attack complexity High. Neither source reports exploitation, and this article does not claim any.
Who is affected?
The advisory limits the issue to instances where "the token exchange feature is enabled and more than one trusted external issuer is configured", on a version below 2.27.4 or on 2.28.0.
The advisory's prose says "fixed in n8n version 2.28.1". Its machine-readable data, the CVE record, and the NVD configuration all list 2.27.4 as well, for the 2.27 line.
The advisory does not name the settings. The source at the n8n@2.28.1 tag does:
| Setting | Default | What it controls at that tag |
|---|---|---|
N8N_ENV_FEAT_TOKEN_EXCHANGE |
unset | The module's controllers and services are only initialised when this is true. The module is also declared with a license flag. |
N8N_TOKEN_EXCHANGE_ENABLED |
false |
The token exchange endpoint, described in the config as POST /auth/oauth/token |
N8N_EMBED_LOGIN_ENABLED |
false |
The embed login endpoint, described as GET/POST /auth/embed |
N8N_TOKEN_EXCHANGE_TRUSTED_KEYS |
empty | A JSON array of trusted key sources. Each entry is static (an inline public key) or jwks (a URL) and carries an issuer string |
Both endpoints end up in the same resolve() function, so embed login goes through the affected lookup too. "More than one trusted issuer" means more than one distinct issuer value across the configured key sources.
The affected range in the CVE record has no lower bound, but the code is newer than that. The lookup was added by a commit dated April 7, 2026. The n8n@2.16.0 tag has only a placeholder for this service, and n8n@2.17.0 contains the lookup. Releases from before the module existed have nothing to enable.
How the account confusion worked
OpenID Connect Core defines sub as "a locally unique and never reassigned identifier within the Issuer for the End-User". Nothing makes it unique across issuers. Two identity providers can both have a user 12345.
n8n keeps external identities in the auth_identity table, whose primary key is (providerId, providerType). For token exchange, the vulnerable code used the bare sub as providerId. This is the lookup at the n8n@2.28.0 tag:
// Path 1: known sub
const identity = await this.authIdentityRepository.findOne({
where: { providerId: claims.sub, providerType: 'token-exchange' },
relations: { user: { role: true } },
});
Because of the primary key, the table could hold one token-exchange row per sub, whichever issuer it came from. The sequence the advisory describes follows directly:
- A user of trusted Issuer A signs in. n8n stores a row keyed by their
suband links it to their account. - Someone presents a valid token from trusted Issuer B that carries the same
sub. - The lookup finds the existing row and returns the account from step 1.
The token in step 2 is real. At the same tag, verifyToken() looks the key up by kid and iss together, verifies the signature with that key, checks iss against the key's configured issuer, checks the audience when one is configured, and consumes the jti so the token cannot be replayed. That file is byte-for-byte identical in 2.28.0 and 2.28.1. Verification worked. What was missing is that the verified issuer never reached the account lookup.
This is why verifying a signature is necessary but not sufficient. The application also has to check that this issuer is the one entitled to assert this identity.
What the fix changed
The advisory does not link a commit, and the release notes for 2.27.4 and 2.28.1 do not mention token exchange. The change is visible in the tag comparison. It landed on the main branch on June 24, 2026 inside a commit titled "chore: Bundle/2.x" and was backported the same day to the 2.27 and 2.28 release branches. identity-resolution.service.ts is identical in the 2.27.4 and 2.28.1 tags.
The fix adds a function that builds an issuer-scoped key, and uses it everywhere a token-exchange identity is read or written:
export function qualifiedProviderId(issuer: string, sub: string): string {
return `${createHash('sha256').update(issuer).digest('hex')}::${sub}`;
}
const qualifiedSub = qualifiedProviderId(claims.iss, claims.sub);
// Path 1: known sub
let identity = await this.authIdentityRepository.findOne({
where: { providerId: qualifiedSub, providerType: 'token-exchange' },
relations: { user: { role: true } },
});
For the issuer https://idp-a.example and the subject 12345, the stored key becomes cc49a65e38ff297f7b6746e934dc185ff54c476846ab42e92b35689eb3176aa0::12345. A different issuer string gives a different 64-character prefix, so the same sub under two issuers now produces two rows. n8n's own tests added with the fix assert exactly that: "keeps an identical subject from two issuers on separate accounts".
Hashing the issuer keeps the key a fixed length regardless of how long the issuer URL is. The issuer string is hashed as written, so https://idp.example and https://idp.example/ are different identities, the same as they are different issuers to the signature check.
After upgrading: identities created before the fix
Rows written before the upgrade are still keyed by the bare sub. The fixed code handles them with one extra step, placed after the issuer-scoped lookup misses:
identity = await this.authIdentityRepository.findOne({
where: { providerId: claims.sub, providerType: 'token-exchange' },
relations: { user: { role: true } },
});
if (identity && (await this.trustedKeyService.hasSingleTrustedIssuer())) {
await this.authIdentityRepository.update(
{ providerId: claims.sub, providerType: 'token-exchange' },
{ providerId: qualifiedSub },
);
this.eventService.emit('token-exchange-identity-rebound', { /* ... */ });
return await this.resolveByIdentity(claims, identity, allowedRoles, tokenContext);
}
hasSingleTrustedIssuer() returns true only when the stored trusted keys carry exactly one distinct issuer. With one issuer there is no ambiguity about who created an old row, so n8n rewrites it in place the next time that user signs in and emits the audit event n8n.audit.token-exchange.identity-rebound.
With more than one issuer, n8n cannot tell which issuer an old row belongs to, and it does not guess. The old row is ignored and resolution continues with the steps that normally handle a first-time login. Reading resolve() at the 2.28.1 tag, the outcomes are:
| Trusted issuers | Token for a user whose row predates the fix | Result |
|---|---|---|
| One | Any | Old row rewritten to the issuer-scoped key; same account as before |
| More than one | email claim equals an existing account's email |
A new issuer-scoped row is linked to that account. The old row stays in the table |
| More than one | email claim matches no account |
A new account is provisioned. The token no longer reaches the user's earlier account |
| More than one | No email claim |
Rejected with "Email claim is required for user provisioning" |
n8n's tests cover the first and last rows ("rebinds a legacy subject-only identity in place when a single issuer is trusted" and "does not rebind a legacy subject-only identity when multiple issuers are trusted"). The middle rows come from reading the code. None of this table comes from running n8n: this site has no licensed instance with the feature enabled.
What that means in practice for a multi-issuer instance:
- If your tokens carry an
emailclaim that matches the n8n account's email, the upgrade is invisible to users. - If your integration sends tokens without
email, existing token-exchange users cannot sign in after the upgrade until their identity is re-established. Find this out in staging, not production. - Temporarily reducing the configuration to one issuer makes n8n rebind old rows on next login, but it rebinds any old row whose
submatches, including rows that were created by a user of the issuer you removed. Only do this if you know every old row belongs to the remaining issuer.
To see how many rows are in the old format, a query along these lines works on PostgreSQL. The column names are from n8n's migration that creates the table; add your table prefix if you set one. It was not run against an n8n database for this article.
SELECT "providerId", "userId", "createdAt"
FROM auth_identity
WHERE "providerType" = 'token-exchange'
AND "providerId" !~ '^[0-9a-f]{64}::';
Model the lookup order with synthetic data
The script below is a model, not n8n source code. A Map stands in for the auth_identity table, users are matched by email, and signature verification is assumed to have already succeeded. It follows the same order as resolve(): known identity, then the single-issuer rebind (fixed versions only), then email, then provisioning. It needs only Node.js.
// Synthetic model of the lookup order in IdentityResolutionService.resolve().
// Not n8n source code: a Map stands in for the auth_identity table.
const { createHash } = require("node:crypto");
const qualified = (iss, sub) => `${createHash("sha256").update(iss).digest("hex")}::${sub}`;
const short = (id) => (id.length > 20 ? `${id.slice(0, 8)}...::${id.split("::")[1]}` : id);
function makeInstance({ issuerScoped, trustedIssuers, legacyRows = [] }) {
const identities = new Map(); // providerId -> userId; providerId is the lookup key
const usersByEmail = new Map();
let count = 0;
const addUser = (email) => {
const id = `user-${++count}`;
usersByEmail.set(email, id);
return id;
};
for (const { sub, email } of legacyRows) identities.set(sub, addUser(email));
function resolve({ iss, sub, email }) {
if (!trustedIssuers.includes(iss)) return "rejected: no trusted key for this issuer";
const key = issuerScoped ? qualified(iss, sub) : sub;
// Path 1: known identity
if (identities.has(key)) return `${identities.get(key)} (known identity)`;
// Fixed versions only: move a subject-only row, but only with one trusted issuer
if (issuerScoped && identities.has(sub) && trustedIssuers.length === 1) {
const userId = identities.get(sub);
identities.delete(sub);
identities.set(key, userId);
return `${userId} (legacy row rebound)`;
}
// Path 2: email fallback
if (email && usersByEmail.has(email)) {
identities.set(key, usersByEmail.get(email));
return `${usersByEmail.get(email)} (linked by email)`;
}
// Path 3: just-in-time provisioning
if (!email) return "rejected: Email claim is required for user provisioning";
const userId = addUser(email);
identities.set(key, userId);
return `${userId} (new account)`;
}
const rows = () => [...identities].map(([id, user]) => `${short(id)} -> ${user}`).join(", ");
return { resolve, rows };
}
const A = "https://idp-a.example";
const B = "https://idp-b.example";
function run(title, options, tokens) {
console.log(title);
const instance = makeInstance(options);
for (const token of tokens) {
const who = `${token.iss === A ? "idp-a" : "idp-b"} sub=${token.sub} email=${token.email ?? "(none)"}`;
console.log(` ${who.padEnd(46)} -> ${instance.resolve(token)}`);
}
console.log(` rows: ${instance.rows()}`);
}
run("1. subject-only lookup, two issuers", { issuerScoped: false, trustedIssuers: [A, B] }, [
{ iss: A, sub: "12345", email: "alice@a.example" },
{ iss: B, sub: "12345", email: "bob@b.example" },
]);
run("2. issuer-scoped lookup, two issuers, empty table", { issuerScoped: true, trustedIssuers: [A, B] }, [
{ iss: A, sub: "12345", email: "alice@a.example" },
{ iss: B, sub: "12345", email: "bob@b.example" },
]);
const legacy = [{ sub: "12345", email: "alice@a.example" }];
run("3. issuer-scoped lookup, one issuer, row created before the upgrade", { issuerScoped: true, trustedIssuers: [A], legacyRows: legacy }, [
{ iss: A, sub: "12345" },
]);
run("4. issuer-scoped lookup, two issuers, row created before the upgrade", { issuerScoped: true, trustedIssuers: [A, B], legacyRows: legacy }, [
{ iss: A, sub: "12345" },
{ iss: B, sub: "12345", email: "bob@b.example" },
{ iss: A, sub: "12345", email: "alice@a.example" },
]);
Output on Node.js 22:
1. subject-only lookup, two issuers
idp-a sub=12345 email=alice@a.example -> user-1 (new account)
idp-b sub=12345 email=bob@b.example -> user-1 (known identity)
rows: 12345 -> user-1
2. issuer-scoped lookup, two issuers, empty table
idp-a sub=12345 email=alice@a.example -> user-1 (new account)
idp-b sub=12345 email=bob@b.example -> user-2 (new account)
rows: cc49a65e...::12345 -> user-1, dcb647a6...::12345 -> user-2
3. issuer-scoped lookup, one issuer, row created before the upgrade
idp-a sub=12345 email=(none) -> user-1 (legacy row rebound)
rows: cc49a65e...::12345 -> user-1
4. issuer-scoped lookup, two issuers, row created before the upgrade
idp-a sub=12345 email=(none) -> rejected: Email claim is required for user provisioning
idp-b sub=12345 email=bob@b.example -> user-2 (new account)
idp-a sub=12345 email=alice@a.example -> user-1 (linked by email)
rows: 12345 -> user-1, dcb647a6...::12345 -> user-2, cc49a65e...::12345 -> user-1
Run 1 is the CVE: bob's token from idp-b lands on alice's account because the row is keyed by 12345 alone. Run 2 is the fixed behaviour on a fresh table. Runs 3 and 4 are the two upgrade cases from the previous section. In run 4 the old 12345 row is still there at the end, unused.
Two later advisories in the same module
On July 22, 2026, the day CVE-2026-59208 appeared in the GitHub Advisory Database, n8n's advisories for two more token exchange issues were published there. Both are rated High with a CVSS 4.0 base score of 8.9 by n8n.
| Advisory | What it says | Fixed in |
|---|---|---|
| GHSA-777w-rpr6-c52h, CVE-2026-65595 (NVD record) | JWTs issued by the token exchange module "were assigned all Public API key scopes, regardless of the acting user's actual role" | 2.29.8 and 2.30.1 |
| GHSA-8342-988q-86cr, no CVE ID listed on November 28, 2026 | When a token was matched to an account by its email claim, n8n "did not check that the trusted key's permitted role ceiling covered that account, nor that the email claim was verified" | 2.31.5 and 2.32.1 |
The second one is the email step from the table above. On 2.27.4 and 2.28.1, a token from any trusted issuer whose email claim equals an existing account's email is linked to that account. So those two releases separate issuers by sub, but an issuer that lets users set an arbitrary, unverified email could still reach another issuer's users that way. The advisory states the impact as being able to "authenticate as any existing user".
The fix for that, visible at the n8n@2.32.1 tag, adds three checks that an upgrade can trip over:
- A trusted key now requires
email_verifiedto be true before n8n links by email or provisions an account, unless that key source setsrequireVerifiedEmailtofalse. The failure message is "Email is not verified". - An existing account whose role is outside the key's
allowedRolesis refused, with "User role is not allowed for this key". - The instance owner cannot sign in through token exchange unless
N8N_TOKEN_EXCHANGE_EXCLUDE_OWNERis set tofalse. It defaults totrue.
One detail to check if you rely on that advisory's workaround. It says to disable embed login "by setting N8N_TOKEN_EXCHANGE_ENABLED=false". At the 2.32.1 tag, the embed controller checks the separate setting behind N8N_EMBED_LOGIN_ENABLED, and N8N_TOKEN_EXCHANGE_ENABLED gates the token endpoint. If you are disabling the feature rather than upgrading, set both and confirm that the embed endpoint answers "Embed login is not enabled on this instance".
The practical conclusion: 2.27.4 and 2.28.1 close CVE-2026-59208, but they are not a safe place to stay if token exchange or embed login is switched on. The lowest releases that contain all three fixes are 2.31.5 on the 2.31 line and 2.32.1. The latest release on November 27, 2026 was 2.49.8, which still contains the issuer-scoped key and the single-issuer rebind.
What correct validation requires
A token exchange implementation should bind these values together:
- Issuer (
iss): the identity provider that issued the token; - Subject (
sub): the identity within that issuer's namespace; - Audience (
aud): the service the token was issued for; - Tenant or organization: the local security boundary receiving the identity.
Account lookup should use the pair (issuer, subject), never the subject alone. In a database that means a unique constraint over both values. n8n got there by folding the issuer into the existing key column; two columns with a composite unique index is the more common shape:
def resolve_external_identity(claims):
issuer = require_trusted_issuer(claims["iss"])
require_expected_audience(claims["aud"])
account = db.find_account(
external_issuer=issuer,
external_subject=claims["sub"],
)
if not account:
raise AuthenticationError("Unknown external identity")
return account
This pseudocode illustrates the invariant; it is not n8n source code.
The rule comes from the OpenID Connect specification. Section 5.7 (Claim Stability and Uniqueness) of OpenID Connect Core 1.0 states: "The sub (subject) and iss (issuer) Claims from the ID Token, used together, are the only Claims that an RP can rely upon as a stable identifier for the End-User". Email addresses and display names carry no such guarantee, which is the lesson of the second advisory above: matching on email is only as strong as the weakest issuer's email verification.
RFC 8693 defines the token exchange request: a subject_token that "represents the identity of the party on behalf of whom the request is being made", plus optional actor tokens. Its Security Considerations section (Section 5) says the normal JWT security issues, "especially in relationship to comparing URIs and dealing with unrecognized values", also apply. The RFC does not say how to map an external subject to a local account. That mapping is the implementer's job, and it is where all three of these n8n issues were.
Inspect two tokens with the JWT Decoder
The two tokens below are synthetic HS256 JWTs signed with the deliberately obvious test key test-secret-not-for-production. They have the same sub and different iss. They were generated with Node's built-in crypto module:
const crypto = require("crypto");
const secret = "test-secret-not-for-production";
const b64u = (o) => Buffer.from(JSON.stringify(o)).toString("base64url");
function make(payload) {
const head = b64u({ alg: "HS256", typ: "JWT" });
const body = b64u(payload);
const sig = crypto.createHmac("sha256", secret).update(head + "." + body).digest("base64url");
return head + "." + body + "." + sig;
}
console.log(make({ iss: "https://idp-a.example", sub: "12345", aud: "n8n.example", iat: 1782000000, exp: 1782003600 }));
console.log(make({ iss: "https://idp-b.example", sub: "12345", aud: "n8n.example", iat: 1782000000, exp: 1782003600 }));
Token A (iss = https://idp-a.example):
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2lkcC1hLmV4YW1wbGUiLCJzdWIiOiIxMjM0NSIsImF1ZCI6Im44bi5leGFtcGxlIiwiaWF0IjoxNzgyMDAwMDAwLCJleHAiOjE3ODIwMDM2MDB9.wH5hrgVRWkvXATnjEB9cLHQrWS68WRbFYaqLoNg9OgY
Token B (iss = https://idp-b.example):
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2lkcC1iLmV4YW1wbGUiLCJzdWIiOiIxMjM0NSIsImF1ZCI6Im44bi5leGFtcGxlIiwiaWF0IjoxNzgyMDAwMDAwLCJleHAiOjE3ODIwMDM2MDB9.h5Pt0x6wMS8WSemZu12iiJbSZtI1-_nlDiUoF4NQe-4
Paste either one into the JWT Decoder. The decoded payloads are:
A payload {"iss":"https://idp-a.example","sub":"12345","aud":"n8n.example","iat":1782000000,"exp":1782003600}
B payload {"iss":"https://idp-b.example","sub":"12345","aud":"n8n.example","iat":1782000000,"exp":1782003600}
A few practical notes on using the decoder for this kind of review:
- Compare
issfirst. If two tokens that your system maps to different people carry the samesub, the only thing separating them isiss. That is the pair of values the vulnerable lookup did not combine. - Check that
audnames your service and thatissexactly matches a configured issuer string, including scheme and any trailing slash. Issuer comparison is a string comparison, and after the fix the issuer string is also part of the stored identity key. exphere is a fixed timestamp in the past, so the decoder reports these samples as expired. They are for reading claims, not for sending to any service.- These samples would not be accepted by n8n. Its trusted-key schema allows only asymmetric algorithms (RS, ES, PS and EdDSA families), and its verification requires a
kidheader and ajticlaim, which the samples lack. - Reading the header and payload does not check the signature. The decoder has an optional local check if you paste the test key as the HS256 secret; the two HMAC values above were recomputed with Node for this article. In production, signature verification belongs on the server, using the key material published by the specific issuer, with the accepted algorithms fixed in configuration.
For background on algorithm and claim validation, see JWT Token Vulnerabilities and Authentication Security. A different JWT-library validation failure is covered in CVE-2026-29000: pac4j-jwt authentication bypass (NVD record).
Remediation
- Upgrade n8n. 2.27.4 and 2.28.1 are the minimum for this CVE. If token exchange or embed login is enabled, treat 2.31.5 or 2.32.1 as the minimum instead, and prefer a current release.
- Before upgrading a multi-issuer instance, check how existing users will be matched. Count the old-format rows with the query above. Check whether your tokens carry
email, and for 2.31.5, 2.32.1 and later, whether they carryemail_verified: true. - Reduce trusted issuers if you cannot upgrade immediately. The vendor advises a single trusted issuer when several are not required.
- Disable token exchange if it is unused. The vendor lists this as a temporary mitigation.
- Review identities created while an affected version was running. See the self-check below.
- Audit other multi-issuer integrations. Search for account lookups keyed only by
sub, email address, or another issuer-local identifier.
The advisory states that its workarounds "do not fully remediate the risk and should only be used as short-term mitigation measures."
Self-check: is my instance exposed?
- Version. You are in the affected range if the version is below 2.27.4, or is exactly 2.28.0.
- Is the module on? Look for
N8N_ENV_FEAT_TOKEN_EXCHANGE=truetogether withN8N_TOKEN_EXCHANGE_ENABLED=trueorN8N_EMBED_LOGIN_ENABLED=truein the environment of the main n8n process. If neither endpoint is enabled, the two routes that call the lookup are off. - How many issuers? Read the JSON in
N8N_TOKEN_EXCHANGE_TRUSTED_KEYS(or the file it is loaded from) and list the distinctissuervalues. One issuer means the multi-issuer condition does not hold. Two or more on an affected version means upgrade now. - Do any rows exist at all?
auth_identityrows withproviderType = 'token-exchange'show whether the feature has been used. No rows means no account was ever bound through it. - After upgrading, confirm the running version. If you operate more than one issuer, test with non-production accounts: two issuers, the same
sub, different emails. Each token should reach only its own account, and the table should gain two rows with different 64-character prefixes.
On looking for past misuse: the advisory describes no log indicator. The source gives one partial signal. Before and after the fix, a successful exchange emits the audit event n8n.audit.token-exchange.succeeded, and a successful embed login emits n8n.audit.token-exchange.embed-login. Both carry the token's subject and issuer, but not the local account it resolved to. If you were collecting n8n audit events while an affected version ran, group those events by subject and look for a subject that appears with more than one issuer. On an affected version, every such pair resolved to a single account, so each one needs a person to decide whether it was one human with two logins or two different people. If you were not collecting audit events, n8n itself does not give you a way to reconstruct this, and your identity providers' own logs are the remaining source.
Key takeaway
CVE-2026-59208 is the standard multi-issuer failure: treating a verified subject as globally unique. An external identity is the pair (issuer, subject). The n8n fix is small, one hash folded into one key, and the harder part is what happens to identities stored before it. If you build something similar, store the issuer from the first version, make the pair unique, and do not fall back to sub or an unverified email when the pair is not found.
Sources
- n8n security advisory GHSA-mq3m-f8x3-579w
- GitHub Advisory Database: GHSA-mq3m-f8x3-579w
- CVE record: CVE-2026-59208
- NVD: CVE-2026-59208
- n8n 2.27.4 release and 2.28.1 release
- n8n tag comparison 2.28.0 to 2.28.1
- n8n commit a4bc50f, "chore: Bundle/2.x" (issuer-scoped identity key)
- n8n identity-resolution.service.ts at 2.28.0 and at 2.28.1
- n8n token-exchange.service.ts at 2.28.1 (token verification)
- n8n trusted-key.service.ts at 2.28.1 (hasSingleTrustedIssuer)
- n8n token-exchange.config.ts at 2.28.1 and token-exchange.schemas.ts
- n8n identity resolution integration tests at 2.28.1
- n8n AuthIdentity entity at 2.28.1
- n8n log-streaming event relay at 2.28.1 (audit event names)
- n8n security advisory GHSA-777w-rpr6-c52h (CVE-2026-65595)
- n8n security advisory GHSA-8342-988q-86cr
- n8n identity-resolution.service.ts at 2.32.1
- CISA Known Exploited Vulnerabilities catalog
- FIRST EPSS API: CVE-2026-59208
- RFC 8693: OAuth 2.0 Token Exchange
- OpenID Connect Core 1.0, Section 5.7: Claim Stability and Uniqueness