CVE-2026-138408

HighCVSS 7.7/10Last modified Dec 1, 2026

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.

Metrics

CVSS 3.1 7.7/10CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N

Weakness enumeration

Affected software

No affected versions have been published.

Timeline

Published
Nov 29, 2026
Last modified
Dec 1, 2026
NVD status
Deferred

Related CVEs from 2026

CVE-2026-138418.3Integer overflow in Skia in Google Chrome prior to 150.0.7871.47 allowed a remote attacker who had compromised the renderer process to potenCVE-2026-1384104.3A weakness has been identified in BookStackApp BookStack up to 26.09.1. This impacts the function restrictEntityRelationQuery of the file apCVE-2026-1384127.3A security vulnerability has been detected in 0957822 reserve-system ad5e485ad450fdf51485ff4753fbd63e40699152. Affected is an unknown functiCVE-2026-1384132.4A vulnerability was detected in DarkMatter-999 college-management-system up to ad939821801b51a27cbcf7cf105c1346b62bbd2e. Affected by this vuCVE-2026-1384145.3A flaw has been found in anshikasharma09 Blood-Bank-Management-System up to 39e2aab0cd81a811e520cb63caab68d9dc28583f. Affected by this issueCVE-2026-1384153.5A vulnerability has been found in youseries UReport up to 2.2.9. This affects the function toHtml of the file ureport2-core/src/main/java/coCVE-2026-1384169.9A vulnerability was found in D-Link R15 1.22.01. This vulnerability affects the function save_CSID_SetDeviceSettings of the file /bin/httpd CVE-2026-13841710.0A vulnerability was determined in Tenda AX9 22.03.01.46. This issue affects the function system of the file /goform/setMacFilterCfg of the cCVE-2026-1384184.3A vulnerability was identified in youseries UReport up to 2.2.9. Impacted is the function service of the file ureport2-console/src/main/javaCVE-2026-1384193.5A security flaw has been discovered in youseries UReport up to 2.2.9. The affected element is the function buildTitle of the file HtmlPrevieCVE-2026-138424.3Inappropriate implementation in Chrome for iOS in Google Chrome on iOS prior to 150.0.7871.47 allowed a remote attacker to spoof the contentCVE-2026-1384203.5A weakness has been identified in youseries UReport up to 2.2.9. The impacted element is the function buildExceptionMessage of the file urep
CVE-2026-138408: High severity, CVSS 7.7 | Vulnix