Cloudanix VulnDB

GHSA-6g38-8j4p-j3pr

Critical · 9.1

Nhost Vulnerable to Account Takeover via OAuth Email Verification Bypass

CVSS

9.1

EPSS

—

Published

Apr 18, 2026

CISA due date

—

The record

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.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities