Elevated
Forgejo email verification bypass allows account takeover
CVE-2026-138408
Self-hosted code hosting servers let someone steal accounts on other services by faking email.
- CVE
- CVE-2026-138408 (opens in a new tab)
- Score
- CVSS 7.7
- First seen
7.7
Products
Mitigation
Update the 15 line to 15.0.12 and the 17 line to 17.0.2 or later. A fixed version for the 16 line is not confirmed.
Update to at least the version for your product:
- Forgejo 15 15.0.12 or later
- Forgejo 17 17.0.2 or later
Summary
An authenticated user can make an unverified secondary email their primary, letting them take over accounts on external services that log in through Forgejo. Forgejo before 15.0.12, all 16.x, and before 17.0.2 are affected.
Affected when
- [service] REGISTER_EMAIL_CONFIRM is enabled
- Forgejo OIDC provider used for logins to external services that match accounts by email
Incidents by product: Forgejo
Read the advisory · codeberg.org (opens in a new tab)
- Advisory: codeberg.org (opens in a new tab)
- Advisory: codeberg.org (opens in a new tab)
- CVE record: cve.org (opens in a new tab)