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)
| Product | Versions | Fixed in |
|---|---|---|
| github.com/getfider/fider | < 0.36.0 | 0.36.0 |
Action recommended by the source
Upgrade to a fixed version: 0.36.0.
Fixed in: 0.36.0
Sources and references
- https://github.com/advisories/GHSA-vxjw-gv4f-vq58 — GHSA
- https://github.com/getfider/fider/security/advisories/GHSA-vxjw-gv4f-vq58 — GHSA
- https://nvd.nist.gov/vuln/detail/CVE-2026-65840 — GHSA
- https://github.com/getfider/fider/commit/ce4f44bb1055d7f6e4a948613c1cfcd5d53126c8 — GHSA
- https://github.com/getfider/fider/releases/tag/v0.36.0 — GHSA
- https://github.com/getfider/fider — OSV
Weaknesses (CWE): CWE-639
Relevant change history
Published
Preliminary advisory published.