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
Source GCVE Database
Not known to be exploited · CVSS 7.7 High : upgrade to 17.0.2 or 15.0.12 soon.
Data as of 29 Nov 2026, 21:18 UTC
Thin evidence
One scorer or none| CNA (mitre) | CVSS 3.1 | 7.7 |
|---|
- Patch
- Available – fixed in 17.0.2, 15.0.12
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 29 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Nov 2026.
What to do
Upgrade Forgejo to 17.0.2 or 15.0.12.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| ForgejoForgejo | Affected
| Fixed in
|
| ForgejoForgejo | Affected
| Fixed in
|
AI-suggested
A fix is available in Forgejo versions 15.0.12 and 17.0.2. Users should upgrade to these or later versions to remediate the vulnerability. Until patched, administrators should consider disabling REGISTER_EMAIL_CONFIRM or restricting email address changes to verified addresses only, if possible. No vendor advisory content was provided to indicate otherwise.
Description
Forgejo versions before 15.0.12, all 16.x, and versions 17.x before 17.0.2 contain a vulnerability where an authenticated user can spoof the email_verified claim. This occurs because the backend does not verify if a secondary email address is activated before allowing it to be set as primary, despite the UI hiding this option. The OpenID Connect provider incorrectly derives email_verified from user activity status rather than the email's verification state. This flaw can lead to account takeover on external services relying on Forgejo for authentication.
References
- nvd.nist.gov/vuln/detail/CVE-2026-138408 (opens in a new tab)
- codeberg.org/forgejo/forgejo/commit/04834f11abbdc164075aaf2bafaab375c555e832 (opens in a new tab)
- codeberg.org/forgejo/forgejo/commit/0c4609133e9ec7da5cb061668f533ba42894c824 (opens in a new tab)
- codeberg.org/forgejo/forgejo/commit/b3460f95c5aade136198ed5ca63a625d2134549c (opens in a new tab)
- codeberg.org/forgejo/forgejo/pulls/15298 (opens in a new tab)
- codeberg.org/forgejo/forgejo/pulls/15299 (opens in a new tab)
- codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/15.0.12.md (opens in a new tab)
- codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/17.0.2.md (opens in a new tab)