CVE-2026-138408
Summary
| CVE | CVE-2026-138408 |
|---|---|
| State | PUBLISHED |
| Assigner | mitre |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-29 18:17:08 UTC |
| Updated | 2026-11-29 18:17:09 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 7.7 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
Problem Types: CWE-602 | CWE-602 CWE-602 Client-Side Enforcement of Server-Side Security
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 7.7 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
| 3.1 | CNA | CVSS | 7.7 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
ChangedConfidentiality
NoneIntegrity
HighAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/15... | [email protected] | codeberg.org | |
| codeberg.org/forgejo/forgejo/pulls/15299 | [email protected] | codeberg.org | |
| codeberg.org/forgejo/forgejo/commit/b3460f95c5aade136198ed5ca63a625d2134549c | [email protected] | codeberg.org | |
| codeberg.org/forgejo/forgejo/commit/04834f11abbdc164075aaf2bafaab375c555e832 | [email protected] | codeberg.org | |
| codeberg.org/forgejo/forgejo/commit/0c4609133e9ec7da5cb061668f533ba42894c824 | [email protected] | codeberg.org | |
| codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/17... | [email protected] | codeberg.org | |
| codeberg.org/forgejo/forgejo/pulls/15298 | [email protected] | codeberg.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.