7.7
HIGH CVSS 3.1
CVE-2026-138408
Forgejo Email Verification Bypass
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.

INFO

Published Date :

Nov. 29, 2026, 6:17 p.m.

Last Modified :

Nov. 29, 2026, 6:17 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2026-138408 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Forgejo forgejo
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH 8254265b-2729-46b6-b9e3-3dfca2d5bfca
CVSS 3.1 HIGH MITRE-CVE
CVSS 3.1 HIGH [email protected]
Solution
Update Forgejo to a patched version to fix email verification spoofing and account takeover risks.
  • Update Forgejo to version 15.0.12 or later.
  • Update Forgejo to version 17.0.2 or later.
  • Verify email verification settings and account takeover protections.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-138408 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-138408 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-138408 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by [email protected]

    Nov. 29, 2026

    Action Type Old Value New Value
    Added 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.
    Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
    Added CWE CWE-602
    Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/138xxx/CVE-2026-138408.json">CVE-2026-138408</a>
    Added Reference https://codeberg.org/forgejo/forgejo/commit/04834f11abbdc164075aaf2bafaab375c555e832
    Added Reference https://codeberg.org/forgejo/forgejo/commit/0c4609133e9ec7da5cb061668f533ba42894c824
    Added Reference https://codeberg.org/forgejo/forgejo/commit/b3460f95c5aade136198ed5ca63a625d2134549c
    Added Reference https://codeberg.org/forgejo/forgejo/pulls/15298
    Added Reference https://codeberg.org/forgejo/forgejo/pulls/15299
    Added Reference https://codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/15.0.12.md
    Added Reference https://codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/17.0.2.md
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.