NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐹
🐹 Go
Not in CISA KEV
CRITICAL severity

CVE-2026-65840 — fider

CRITICALFix: getfider/fider@ce4f44b

CVE-2026-65840 is a critical-severity (CVSS 9.6) CWE-639 vulnerability in github.com/getfider/fider. A fix is available for github.com/getfider/fider — see the affected versions and patch details below.

Fider: Cross-Tenant Authentication Bypass via Missing tenant_id Filter in getVerificationByKey

Also known asGHSA-vxjw-gv4f-vq58
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Dec 2, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • A successful exploit gives an attacker total control of the affected component, not partial access.
  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for CVE-2026-65840.

EPSS Exploitation Probability

via FIRST.org ↗
0.3%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs28th percentile — riskier than 28% of all scored CVEsHighest risk
0.00%0.28%0.55%0.83%0.3%0.3%Dec 26Dec 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

1 pkg affected
🐹github.com/getfider/fider

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.

Description

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:

-- 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:

-- 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 [email protected]
  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 the key without tenant_id filtering, finds Tenant A's verification record
  5. Fider authenticates the attacker on Tenant B using the email from Tenant A's record

Consequence:

  • If [email protected] already exists as an administrator on Tenant B → full administrative access is granted
  • If the account does not exist on Tenant B → a new account is silently created under the attacker's email

Proof of Concept

Verified on a local Docker environment with HOST_MODE=multi, getfider/fider:stable (commit d5a80ea5).

# Step 1 — Request sign-in email on Tenant A
POST http://tenanta.fider.local/_api/signin
{"email": "[email protected]"}

# Step 2 — Extract key from email link (retrieved via MailHog)
k=Urpoz9ntWfOBgpF72UWklTJUOjyLUhdzOLEvP6G5KVUgyRnc5ioMpwF6NOs0XNrE

# Step 3 — Use Tenant A's key on Tenant B
GET http://tenantb.fider.local/signin/verify?k=Urpoz9ntWfOBgpF72UWklTJUOjyLUhdzOLEvP6G5KVUgyRnc5ioMpwF6NOs0XNrE

# Result — Successfully authenticated on Tenant B as [email protected]

The browser session showed the user logged in on Tenant B with the identity belonging to Tenant A.

Suggested Fix

Add the tenant_id filter to the query in app/services/sqlstore/postgres/tenant.go:133:

func getVerificationByKey(ctx context.Context, q *query.GetVerificationByKey) error {
    return using(ctx, func(trx *dbx.Trx, tenant *entity.Tenant, user *entity.User) error {
        verification := dbEntities.EmailVerification{}
        query := `SELECT id, email, name, key, code, created_at, verified_at,
                         expires_at, kind, user_id, attempts
                  FROM email_verifications
                  WHERE tenant_id = $3 AND key = $1 AND kind = $2
                  LIMIT 1`
        err := trx.Get(&verification, query, q.Key, q.Kind, tenant.ID)
        if err != nil {
            return errors.Wrap(err, "failed to get email verification by its key")
        }
        q.Result = verification.ToModel()
        return nil
    })
}

CVSS

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N — 8.5 (High)

Resources

  • Vulnerable file: app/services/sqlstore/postgres/tenant.go:133

  • Secure sibling patterns: app/services/sqlstore/postgres/tenant.go:148, :182

  • Entry point: app/handlers/signin.go:319 (VerifySignInKey)

  • Dispatch chain: app/handlers/common.go:127 (validateKey → GetVerificationByKey)

  • Patched in: v0.36.0 (commit ce4f44bb)

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐹Gogithub.com/getfider/fiderall versions0.36.0go get github.com/getfider/fider@v0.36.0

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/getfider/fider, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update github.com/getfider/fider to 0.36.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-65840 is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

Frequently Asked Questions

## 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 -- Vu
O3 Security · Impact-Aware SCA

Is CVE-2026-65840 in your dependencies?

Find it across Go, including transitive dependencies.

CVE-2026-65840: fider — Fixed in 0.36.0