Skip to content
DayZeroHub
Critical Not yet writtenCVSS 9.6GHSA-vxjw-gv4f-vq58CVE-2026-65840

CVE-2026-65840: Fider: Multi-tenant verification-key bypass enables cross-tenant account takeover

github.com/getfider/fider

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-65840: critical-severity vulnerability (CVSS 9.6) in github.com/getfider/fider.

What happened

Original description from the source: ## Summary In multi-tenant mode (`HOST_MODE=multi`), an attacker can use an email verification key issued by Tenant A to authenticate as the same email address on Tenant B. This completely bypasses tenant isolation and allows unauthorized account takeover across tenants. **Single-host deployments (`HOST_MODE=single`, the default) are NOT affected.** ## Affected Component `app/services/sqlstore/postgres/tenant.go:133` — `getVerificationByKey` ## Vulnerability Details The `getVerificationByKey` function queries the `email_verifications` table without filtering by `tenant_id`: ```sql -- Vulnerable query (line 133) SELECT id, email, name, key, created_at, verified_at, expires_at, kind, user_id, attempts FROM email_verifications WHERE key = $1 AND kind = $2 LIMIT 1 ``` The table's unique index is `(tenant_id, key)` — the same key can theoretically exist across tenants. Without the `tenant_id` filter, the query returns the first matching row regardless of tenant. Sibling queries in the same file correctly scope by `tenant_id`, making this a clear regression from the established secure pattern: ```sql -- Secure pattern at line 148 WHERE tenant_id = $1 AND email = $2 AND code = $3 AND kind = $4 -- Secure pattern at line 182 (setKeyAsVerified) WHERE tenant_id = $2 AND key = $3 AND verified_at IS NULL ``` ## Attack Scenario **Prerequisite:** the attacker only needs an account on any tenant (zero special privilege). 1. Attacker registers on `tenanta.example.com` with `attacker@evil.com` 2. Attacker requests a sign-in email on `tenanta.example.com` and obtains the verification key from the email 3. Attacker visits `https://tenantb.example.com/signin/verify?k=<KEY>` 4. Fider looks up…

Why it matters

Critical severity, CVSS 9.6.

Affected products and versions

github.com/getfider/fider < 0.36.0 (fixed in 0.36.0)

ProductVersionsFixed in
github.com/getfider/fider< 0.36.00.36.0

Action recommended by the source

Upgrade to a fixed version: 0.36.0.

Fixed in: 0.36.0

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-639

Relevant change history

  1. Published

    Preliminary advisory published.