Discourse invite flow keeps access for unverified email addresses
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · GHSA-3r67-rvgq-ggwq. Fix status from GitHub.
Summary
Discourse grants account access during invite redemption before verifying the supplied email address. The invitee can change the pending account's activation email to one they control and activate the account while keeping access tied to the unverified address. An attacker with a usable invite link can read private messages intended for another address, keep moderator or private-group membership, or join invite-only sites. Exploitation requires high attack complexity and no privileges.
Written with Claude Haiku 5.5 from the sources below · 2026-11-24
Description from the GitHub advisory
## Impact Discourse could grant access to an account during invite redemption before verifying the email address supplied by the person accepting the invite. That person could then change the pending account’s activation email to an address they controlled and activate the account while retaining access associated with the original, unverified address. An attacker able to use this flow could supply an email address they did not own, receive access intended for that address, and complete activation using a different address. Demonstrated consequences include: - **Confidentiality:** Reading a private message intended for another person’s email address. The signup invite link itself did not need to grant access to the message: during redemption, Discourse could also attach access from a separate pending private-message invitation matching the supplied email address. - **Integrity:** Retaining moderator status or private-group membership obtained through a domain-restricted invite, even though the account’s subsequently verified address was outside the permitted domain. On versions supporting domain-restricted admin invites, the account could also become an administrator if the inviting admin confirmed the grant using the confirmation request that named the original in-domain address. - **Site access:** Joining an invite-only site through a domain-restricted invite without owning an address in the permitted domain. On sites requiring login to read content, this could expose content available to site members. ## Attack prerequisites The attacker must be able to redeem an invite through a flow that accepts an email address without first verifying ownership of that address. In the legacy password-signup invite flow, this path is reachable when either: - `enable_local_logins_via_email` is disabled; or - The `enable_local_logins_via_code` upcoming change is disabled. The path can also be reachable through a third-party login provider that completes authentication without a verified email address, even when the default local sign-in settings are enabled. Depending on their configuration, this can include OpenID Connect and generic OAuth2 providers. The attacker must also have access to a usable invite link. The specific consequences require additional conditions: - **Private-message disclosure:** A separate pending invitation to a private message must exist for the email address the attacker supplies. - **Domain-restricted group, staff, or site access:** The attacker must possess a domain-restricted invite link that provides the relevant access. - **Administrator access:** The affected version must support the relevant admin-invite flow, and the inviting administrator must confirm the grant. Possession of an unrestricted invite link alone does not provide access to arbitrary private messages. The private-message variant depends on Discourse finding a separate pending message invitation matching the supplied address. ## Patch behavior The patch rejects activation-email changes for any account with an invite redemption record. The account must complete activation using its current email address; it cannot substitute a different address to finish activation. This is a blanket restriction for invite-redeemed accounts. It does not attempt to determine which individual permissions depended on the original address. - The restriction applies to email-specific invites, domain-restricted invites, and unrestricted invite links. - It applies even when the replacement address is within the same domain or the invite did not grant additional permissions. - The check uses the account’s redemption record rather than the invitation’s current configuration. Editing or deleting the invitation does not bypass the restriction while that record remains. - Rejected changes preserve the existing email address and activation token, so activation at the original address can still succeed. - Submitting the same address after case and whitespace normalization remains allowed. - Ordinary signup email correction for accounts without an invite redemption record is unchanged. - The normal email-change process after activation is unchanged. ### Compatibility consequences Invited users can no longer correct an email typo or choose a different email address before activation. Starting over with the preferred address may be possible if the invite has remaining uses. However, the pending account retains its username, and accepting an invite consumes a redemption before email verification. A mistake can therefore require a different username, staff assistance, or a replacement invite. “Unrestricted” means that an invite has no email or domain restriction; it does not necessarily mean that the invite has unlimited uses. ## Scope This advisory and patch address the sequence of **redeeming an invite, changing the pending account’s activation email, and activating with the replacement address**. The patch does not change non-invite signup, email-derived automatic approval, bulk-import provisioning, or administrator-confirmation handling. It should not be interpreted as a general remediation for every feature that associates access or data with an unverified email address. ## Workarounds For the local password-signup invite variant, enable both parts of the email-code sign-in flow: - Enable `enable_local_logins_via_email` in the login settings. - Enable the `enable_local_logins_via_code` upcoming change. Either setting alone is insufficient to ensure that this local invite-signup path uses email verification before redemption. These settings do not address third-party login providers that can complete authentication without a verified email address. For those providers, consider disabling the affected provider until the patch is applied. Avoiding domain-restricted invite links and email invitations to private messages also reduces exposure to the demonstrated invite-based attacks. ## Review existing accounts The patch does not undo access obtained through exploitation. It also does not repair pending accounts whose activation email was already changed before the patch was installed. Administrators investigating possible exploitation should review accounts associated with affected invitations, including pending accounts. For domain-restricted invitations, check whether the account’s current email address belongs to the expected domain and investigate unexpected changes. Deleting an invitation does not remove access it already granted. Unauthorized group membership, staff roles, or private-message access must be removed from the affected account itself.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | Discourse | — | 2026.11.0 | Patch available | GHSA-3r67-rvgq-ggwq |
| — | Discourse | >= 2026.10.0-latest | 2026.10.3 | Patch available | GHSA-3r67-rvgq-ggwq |
| — | Discourse | >= 2026.9.0-latest | 2026.9.4 | Patch available | GHSA-3r67-rvgq-ggwq |
| — | Discourse | >= 2026.7.0-latest | 2026.7.7 | Patch available | GHSA-3r67-rvgq-ggwq |
- Discourse Vendor— Affected — Fixed in 2026.11.0 Patch available GHSA-3r67-rvgq-ggwq
- Discourse Vendor— Affected >= 2026.10.0-latest Fixed in 2026.10.3 Patch available GHSA-3r67-rvgq-ggwq
- Discourse Vendor— Affected >= 2026.9.0-latest Fixed in 2026.9.4 Patch available GHSA-3r67-rvgq-ggwq
- Discourse Vendor— Affected >= 2026.7.0-latest Fixed in 2026.7.7 Patch available GHSA-3r67-rvgq-ggwq
Remediation
Upgrade Discourse to 2026.11.0, or to 2026.10.3, 2026.9.4 or 2026.7.7 on the matching release line.
Written with Claude Haiku 5.5 from the sources below · 2026-11-24
- Fix · GHSA-3r67-rvgq-ggwq Discourse Fixed in 2026.11.0 Advisory →
- Fix · GHSA-3r67-rvgq-ggwq Discourse Fixed in 2026.10.3 Advisory →
- Fix · GHSA-3r67-rvgq-ggwq Discourse Fixed in 2026.9.4 Advisory →
- Fix · GHSA-3r67-rvgq-ggwq Discourse Fixed in 2026.7.7 Advisory →
Timeline
- 2026-11-24 Threatist record created from GHSA-3r67-rvgq-ggwq
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences