Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/nhost/nhost
  4. ›
  5. CVE-2026-41574

CVE-2026-41574: Nhost Vulnerable to Account Takeover via OAuth Email Verification Bypass

April 18, 2026 (updated April 27, 2026)

Nhost automatically links an incoming OAuth identity to an existing Nhost account when the email addresses match. This is only safe when the email has been verified by the OAuth provider. Nhost’s controller trusts a profile.EmailVerified boolean that is set by each provider adapter.

The vulnerability is that several provider adapters do not correctly populate this field they either silently drop a verified field the provider API actually returns (Discord), or they fall back to accepting unconfirmed emails and marking them as verified (Bitbucket). Two Microsoft providers (AzureAD, EntraID) derive the email from non-ownership-proving fields like the user principal name, then mark it verified.

The result is that an attacker can present an email they don’t own to Nhost, have the OAuth identity merged into the victim’s account, and receive a full authenticated session.

References

  • github.com/advisories/GHSA-6g38-8j4p-j3pr
  • github.com/nhost/nhost
  • github.com/nhost/nhost/commit/ec8dab3f2cf46e1131ddaf893d56c37aa00380b2
  • github.com/nhost/nhost/pull/4162
  • github.com/nhost/nhost/security/advisories/GHSA-6g38-8j4p-j3pr
  • nvd.nist.gov/vuln/detail/CVE-2026-41574

Code Behaviors & Features

Detect and mitigate CVE-2026-41574 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.0-20260417112436-ec8dab3f2cf4

Fixed versions

  • 0.0.0-20260417112436-ec8dab3f2cf4

Solution

Upgrade to version 0.0.0-20260417112436-ec8dab3f2cf4 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication

Source file

go/github.com/nhost/nhost/CVE-2026-41574.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:17:41 +0000.