CVE Feed
7.7 High

In Forgejo before 15.0.12 and 16.x and 17.x before 17.0.2, emailverified can be spoofed, sometimes leading to account takeover in external…

CVE-2026-138408

In Forgejo before 15.0.12 and 16.x and 17.x before 17.0.2, emailverified 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] REGISTEREMAILCONFIRM 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 emailverified claim from user.IsActive rather than the primary email address's activation state, an attacker can obtain signed ID tokens asserting emailverified: true for an arbitrary unverified email address, and potentially take over accounts on external relying parties that match users by verified email.

Assessment

CVSS
7.7 (v3.1)
Severity
High
EPSS
0% chance of exploitation in the next 30 days
Known exploited
Not listed in CISA KEV
Exploit availability
Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
Published
29 November 2026
Last updated
29 November 2026
Affected
Forgejo · Forgejo
Weakness
CWE-602
Assigner
mitre

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

At the source

References

Community proofs of concept

No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.

Submit a proof of concept
Before you submit *

Query this programmatically

Agents can read this through the MCP endpoint, or over HTTP:

curl https://cve.zerocrew.in/api/cve/CVE-2026-138408