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.
Affected software
| Software | Affected versions |
|---|---|
ForgejoServers and applications · cna:forgejo|forgejo |
|
About Forgejo
free and open source software forge and repository
Release lines
| Release | Latest | Security fixes |
|---|---|---|
| 17.0 | 17.0.2 | Until 28 Jan 2027 |
| 16.0 | 16.0.7 | Ended 29 Oct 2026 |
| 15.0 (LTS)LTS | 15.0.12 | Until 15 Jul 2027 |
| 14.0 | 14.0.5 | Ended 30 Apr 2026 |
| 13.0 | 13.0.5 | Ended 29 Jan 2026 |
| 12.0 | 12.0.4 | Ended 16 Oct 2025 |
From endoflife.date.
Vulnerabilities in Forgejo
- In our list
- 7
- Published in the last 12 months
- 4
- Critical, last 12 months
- 0
- High, last 12 months
- 1
- Known exploited
- 0
- CVE-2026-119547Forgejo through 15.0.11, 16.0.7, and 17.0.1 Information Disclosure via /api/v1/user/keys/{id}Medium 5.3 30 Oct 2026
- CVE-2026-119546Forgejo through 15.0.11, 16.0.7, and 17.0.1 Path Traversal via restore-repoMedium 6.8 30 Oct 2026
- CVE-2026-119545Forgejo through 15.0.11, 16.0.7, and 17.0.1 SSRF via OpenID DiscoveryMedium 6.9 30 Oct 2026
- CVE-2023-49948Forgejo before 1.20.5-1 allows remote attackers to test for the existence of private user accounts by appending .rss (or another extension) to a URL.Medium 5.3 3 Dec 2023
- CVE-2023-49947Forgejo before 1.20.5-1 allows 2FA bypass when docker login uses Basic Authentication.High 7.5 3 Dec 2023
- CVE-2023-49946In Forgejo before 1.20.5-1, certain endpoints do not check whether an object belongs to a repository for which permissions are being checked. This allows remote attackers to read private issues, read private pull requests, delete issues, and perform other unauthorized actions.Critical 9.1 3 Dec 2023
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-138408