All vulnerabilities

Servers and applications

CVE-2026-138408

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"…

Severity
High 7.7
Published
29 Nov 2026
Last changed
29 Nov 2026
Added to UpHeron
29 Nov 2026
Fixed in
15.0.12, 17.0.2
Weakness
CWE-602
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
Sources
CVE Program

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.

From the CVE Program. Shortened; the full text is there.

Affected software

SoftwareAffected versions
ForgejoServers and applications · cna:forgejo|forgejo
  • From 9.0.0 before 15.0.12
  • From 16.0.0 before 17.0.2

About Forgejo

free and open source software forge and repository

From Wikidata, CC0 1.0.
Written in
Go, JavaScriptWikidata
First released
15 Dec 2022Wikidata

Release lines

ReleaseLatestSecurity fixes
17.017.0.2Until 28 Jan 2027
16.016.0.7Ended 29 Oct 2026
15.0 (LTS)LTS15.0.12Until 15 Jul 2027
14.014.0.5Ended 30 Apr 2026
13.013.0.5Ended 29 Jan 2026
12.012.0.4Ended 16 Oct 2025

From endoflife.date.

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-138408