StraitOfVuln
Latest / CVE-2026-138408

CVE-2026-138408

HighCVSS 7.7 (v3.1)Deferred
CVE.org ↗NVD ↗

Description

In Forgejo before 15.0.12 and 16.x and 17.x before 17.0.2, email_verified can be spoofed, sometimes leading to account takeover in external services that rely on Forgejo for authentication. It allows an authenticated user to set an unverified secondary email address as their primary email address when [service] REGISTER_EMAIL_CONFIRM is enabled. Although the web UI hides the "Make primary" button for unverified addresses, the backend POST /user/settings/account/email handler (EmailPost in routers/web/user/setting/account.go) and MakeEmailAddressPrimary in services/user/email.go did not check whether the email address was activated. Because Forgejo's OpenID Connect (OIDC) provider derives the email_verified claim from user.IsActive rather than the primary email address's activation state, an attacker can obtain signed ID tokens asserting email_verified: true for an arbitrary unverified email address, and potentially take over accounts on external relying parties that match users by verified email.

Details

CVE ID
CVE-2026-138408
Published / updated
29 Nov 2026, 18:17 UTC · last modified 01 Dec 2026, 20:18 UTC
Severity
HIGH
CVSS score
7.7 · v3.1 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N · Attack vector: Network
Affected vendor
Forgejo
Affected products
Forgejo
Affected versions
Forgejo: 9.0.0 to before 15.0.12, 16.0.0 to before 17.0.2
From the publisher's (CNA) CVE record. NVD analysis is pending.
Fixed versions
Forgejo 15.0.12, Forgejo 17.0.2
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.59% probability of exploitation in the next 30 days · 50% percentile (03 Dec 2026)
Weakness
Remediation
See the vendor advisory below.
Source (CNA)
cve@mitre.org