Vulnerabilities in pkg:golang/github.com/getfider/fider
PACKAGECVE-2026-65840 is a CRITICAL (CVSS 9.6) multi-tenant verification-key bypass enables cross-tenant vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Fider libraries in the Go ecosystem. The issue involves multi-tenant verification-key bypass enables cross-tenant account takeover. Remediation is available by upgrading affected packages to version 0.36.0.
pkg:golang/github.com/getfider/fider
Vulnerability advisories affecting package pkg:golang/github.com/getfider/fider. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-vxjw-gv4f-vq58 | CVE-2026-65840 | CRITICAL | Fider: Multi-tenant verification-key bypass enables cross-tenant account takeover |
CVE-2026-65840 at a Glance
Security Impact
CVSS: 9.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N).
How to Fix CVE-2026-65840
To remediate this vulnerability, upgrade all affected Fider dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/getfider/fider to 0.36.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/getfider/fider
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-65840, inspect your project dependencies for Fider:
inspect dependencies for github.com/getfider/fider
Analyze the terminal output to locate any version of Fider in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.36.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Fider, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-65840 Affected Fider Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/getfider/fider
|
Go |
< 0.36.0
|
0.36.0
|
References
Frequently Asked Questions
What is CVE-2026-65840?
Which Fider versions are affected?
What version fixes CVE-2026-65840?
Is github.com/getfider/fider affected?
What is the CVSS score of CVE-2026-65840?
What CWE is associated with CVE-2026-65840?
How can I check Go dependencies for CVE-2026-65840?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vxjw-gv4f-vq58",
"modified" : "2026-12-03T17:24:13Z",
"published" : "2026-12-03T17:24:13Z",
"aliases" : [ "CVE-2026-65840" ],
"summary" : "Fider: Multi-tenant verification-key bypass enables cross-tenant account takeover",
"details" : "## Summary\n\nIn 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.\n\n**Single-host deployments (`HOST_MODE=single`, the default) are NOT affected.**\n\n## Affected Component\n\n`app/services/sqlstore/postgres/tenant.go:133` — `getVerificationByKey`\n\n## Vulnerability Details\n\nThe `getVerificationByKey` function queries the `email_verifications` table without filtering by `tenant_id`:\n\n```sql\n-- Vulnerable query (line 133)\nSELECT id, email, name, key, created_at, verified_at, expires_at, kind, user_id, attempts\nFROM email_verifications\nWHERE key = $1 AND kind = $2\nLIMIT 1\n```\n\nThe 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.\n\nSibling queries in the same file correctly scope by `tenant_id`, making this a clear regression from the established secure pattern:\n\n```sql\n-- Secure pattern at line 148\nWHERE tenant_id = $1 AND email = $2 AND code = $3 AND kind = $4\n\n-- Secure pattern at line 182 (setKeyAsVerified)\nWHERE tenant_id = $2 AND key = $3 AND verified_at IS NULL\n```\n\n## Attack Scenario\n\n**Prerequisite:** the attacker only needs an account on any tenant (zero special privilege).\n\n1. Attacker registers on `tenanta.example.com` with `attacker@evil.com`\n2. Attacker requests a sign-in email on `tenanta.example.com` and obtains the verification key from the email\n3. Attacker visits `https://tenantb.example.com/signin/verify?k=<KEY>`\n4. Fider looks up the key without `tenant_id` filtering, finds Tenant A's verification record\n5. Fider authenticates the attacker on **Tenant B** using the email from Tenant A's record\n\n**Consequence:**\n- If `attacker@evil.com` already exists as an administrator on Tenant B → full administrative access is granted\n- If the account does not exist on Tenant B → a new account is silently created under the attacker's email\n\n## Proof of Concept\n\nVerified on a local Docker environment with `HOST_MODE=multi`, `getfider/fider:stable` (commit `d5a80ea5`).\n\n```bash\n# Step 1 — Request sign-in email on Tenant A\nPOST http://tenanta.fider.local/_api/signin\n{\"email\": \"admin-a@test.com\"}\n\n# Step 2 — Extract key from email link (retrieved via MailHog)\nk=Urpoz9ntWfOBgpF72UWklTJUOjyLUhdzOLEvP6G5KVUgyRnc5ioMpwF6NOs0XNrE\n\n# Step 3 — Use Tenant A's key on Tenant B\nGET http://tenantb.fider.local/signin/verify?k=Urpoz9ntWfOBgpF72UWklTJUOjyLUhdzOLEvP6G5KVUgyRnc5ioMpwF6NOs0XNrE\n\n# Result — Successfully authenticated on Tenant B as admin-a@test.com\n```\n\nThe browser session showed the user logged in on Tenant B with the identity belonging to Tenant A.\n\n## Suggested Fix\n\nAdd the `tenant_id` filter to the query in `app/services/sqlstore/postgres/tenant.go:133`:\n\n```go\nfunc getVerificationByKey(ctx context.Context, q *query.GetVerificationByKey) error {\n return using(ctx, func(trx *dbx.Trx, tenant *entity.Tenant, user *entity.User) error {\n verification := dbEntities.EmailVerification{}\n query := `SELECT id, email, name, key, code, created_at, verified_at,\n expires_at, kind, user_id, attempts\n FROM email_verifications\n WHERE tenant_id = $3 AND key = $1 AND kind = $2\n LIMIT 1`\n err := trx.Get(&verification, query, q.Key, q.Kind, tenant.ID)\n if err != nil {\n return errors.Wrap(err, \"failed to get email verification by its key\")\n }\n q.Result = verification.ToModel()\n return nil\n })\n}\n```\n\n## CVSS\n\n**Vector:** `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N` — **8.5 (High)**\n\n## Resources\n\n- Vulnerable file: `app/services/sqlstore/postgres/tenant.go:133`\n- Secure sibling patterns: `app/services/sqlstore/postgres/tenant.go:148`, `:182`\n- Entry point: `app/handlers/signin.go:319` (`VerifySignInKey`)\n- Dispatch chain: `app/handlers/common.go:127` (`validateKey` → `GetVerificationByKey`)\n\n- **Patched in:** v0.36.0 (commit `ce4f44bb`)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/getfider/fider"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.36.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/getfider/fider/security/advisories/GHSA-vxjw-gv4f-vq58"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-65840"
}, {
"type" : "WEB",
"url" : "https://github.com/getfider/fider/commit/ce4f44bb1055d7f6e4a948613c1cfcd5d53126c8"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/getfider/fider"
}, {
"type" : "WEB",
"url" : "https://github.com/getfider/fider/releases/tag/v0.36.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-639" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-12-03T17:24:13Z",
"nvd_published_at" : "2026-11-11T19:17:43Z"
}
}