CVE-2026-138408: Forgejo · Client-Side Enforcement of Server-Side Security
Affects ForgejoSource CVE Database V5
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, 18:15 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
Forgejo has released official fixes in versions 15.0.12 and 17.0.2 that correct the backend validation to ensure only verified email addresses can be set as primary and properly derive the email_verified claim from the email verification state. Users should upgrade affected Forgejo instances to at least version 15.0.12 or 17.0.2. No other mitigation is indicated by the vendor advisory.
Description
Forgejo versions before 15.0.12 and 16.x and 17.x before 17.0.2 contain a vulnerability where an authenticated user can spoof the email_verified status of an unverified secondary email address and set it as their primary email. This flaw arises because the backend does not verify email activation status when changing the primary email, and the OpenID Connect provider incorrectly derives the email_verified claim from user activity status rather than email verification state. This can lead to issuance of ID tokens asserting email_verified: true for unverified emails, potentially enabling account takeover on external services relying on Forgejo for authentication.
References
- codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/17.0.2.md (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/pulls/15298 (opens in a new tab)
- codeberg.org/forgejo/forgejo/pulls/15299 (opens in a new tab)
- codeberg.org/forgejo/forgejo/commit/0c4609133e9ec7da5cb061668f533ba42894c824 (opens in a new tab)
- codeberg.org/forgejo/forgejo/commit/04834f11abbdc164075aaf2bafaab375c555e832 (opens in a new tab)
- codeberg.org/forgejo/forgejo/commit/b3460f95c5aade136198ed5ca63a625d2134549c (opens in a new tab)