AgentbeamBeta
AI agent vulnerability · n8n

GHSA-vjf3-2gpj-233v: n8n has an SSO Enforcement Bypass in its Self-Service Settings API

mediumCVSS 4.0 6.0 · 3.1 6.3

In n8n before 2.8.0, a user signed in through SSO could turn off SSO enforcement for their own account using the self-service settings API. They could then set a local password and log in with email and password, outside the organization's SSO policy. Fixed in n8n 2.8.0.

Published Feb 26, 2026 · Analysis Nov 8, 2026

What an attacker can do

SSO enforcement ties n8n logins to the company identity provider, which can require multi-factor authentication and removes access when someone leaves. The self-service settings API let an SSO user switch that enforcement off for their own account (CWE-269, improper privilege management). The user could then create a local password and sign in with email and password.

The attacker is an existing, signed-in SSO user, so low privileges are needed. A real employee could do it, and so could an attacker who hijacked an SSO session. Once the local password exists, access no longer depends on the identity provider. A session that was meant to expire or be revoked can become a lasting login that skips identity-provider MFA.

The account keeps the same n8n role it had before. The harm is persistence and policy bypass, which is why the CVSS 3.1 vector shows high integrity impact and a medium score of 6.3.

Who is affected

npm package n8n, versions before 2.8.0. Instances that use SSO and rely on enforcement are the ones that matter. Check the version:

npm ls -g n8n

In Docker, check the image tag. The advisory suggests looking in the audit logs for affected users.

n8n

Ecosystem
npm
Affected
< 2.8.0
Fixed in
2.8.0
Check
npm ls n8n

How to fix it

Upgrade to n8n 2.8.0 or later.

npm install -g [email protected]

The advisory names two stopgaps that do not fully fix it: monitor audit logs for users who create local credentials after signing in with SSO, and restrict the instance to fully trusted users.

How to tell if you were hit

Search n8n audit logs for SSO users who set a local password or changed their own authentication settings. List accounts that can log in with email and password but should be SSO only. Check logins by password from accounts whose identity-provider logs show no matching sign-in. For any such account, reset the credentials and review what the user did.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

An authenticated user signed in through Single Sign-On (SSO) could disable SSO enforcement for their own account through the n8n API. This allowed the user to create a local password and authenticate directly with email and password, completely bypassing the organization's SSO policy, centralized identity management, and any identity-provider-enforced multi-factor authentication.

Patches

The issue has been fixed in n8n version 2.8.0. Users should upgrade to this version or later to remediate the vulnerability.

Workarounds

If upgrading is not immediately possible, administrators should consider the following temporary mitigations:

  • Monitor audit logs for users who create local credentials after authenticating via SSO.
  • Restrict the n8n instance to fully trusted users only.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Credited to stanislavfortaisle.

Questions

What can a user do with GHSA-vjf3-2gpj-233v?

Disable SSO enforcement for their own account through the n8n API, set a local password and log in with email and password instead of SSO.

Does GHSA-vjf3-2gpj-233v bypass multi-factor authentication?

It bypasses any MFA enforced by the identity provider, because password logins no longer go through it.

Which n8n version fixes GHSA-vjf3-2gpj-233v?

n8n 2.8.0. Earlier versions are vulnerable.

Does the attacker need to be logged in?

Yes. The user must already be authenticated through SSO. The CVSS vector requires low privileges.

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 n8n vulnerabilities

All n8n entries