CVE-2026-138408 — Forgejo
Research article
Forgejo Email Verification Flaw Enables Account Takeover Vulnerability
| CVE | CVE-2026-138408 |
|---|---|
| Vendor and product | Forgejo |
| Published | November 29, 2026 20:05 UTC |
| Research cut-off | November 29, 2026 19:45 UTC |
| Sources reviewed | 2: NVD record (last modified 2026-11-29); CISA KEV catalog |
Executive summary
CVE-2026-138408 impacts Forgejo versions prior to 15.0.12 and 17.0.2, enabling authenticated users to manipulate email verification and potentially assume control of accounts on external platforms [1]. The CVSS 3.1 rating is 7.7 HIGH [1], and CISA's catalog does not list the CVE as of 2026-11-29, which is not evidence that it has not been exploited [2]. The fixed versions are 15.0.12 and 17.0.2 [1].
Key points
- CVE-2026-138408 allows authenticated users to manipulate email verification in Forgejo versions before 15.0.12 and 17.0.2 [1].
- The CVSS 3.1 score is 7.7 HIGH, reflecting a high integrity impact with no confidentiality or availability impact [1].
- CISA's Known Exploited Vulnerabilities Catalog does not include this CVE as of 2026-11-29 [2].
- Users should update to Forgejo 15.0.12 or 17.0.2 to reduce the risk [1].
Vulnerability identification
| Field | Value |
|---|---|
| CVE ID | CVE-2026-138408 [1] |
| Vendor | Forgejo [1] |
| CWE | CWE-602 [1] |
| CVSS 3.1 | 7.7 HIGH, scored by cve@mitre.org (Secondary) [1] |
| Published | 2026-11-29 [1] |
| Last Modified | 2026-11-29 [1] |
| Record Status | Deferred [1] |
Vulnerability description
This flaw enables an authenticated user to designate an unverified secondary email as their primary contact if the REGISTEREMAILCONFIRM feature is active. The backend system fails to validate the activation status of the email address, which may allow unauthorized access to external services that depend on Forgejo for authentication [1].
Attack surface and exploitation prerequisites
The vulnerability's CVSS vector indicates it requires no user input and can be accessed remotely. The attacker must be an authenticated user [1].
Impact analysis
The CVSS vector shows no impact on data confidentiality, but it can result in a high integrity threat. The system may be vulnerable to unauthorized changes in user data or account configurations [1].
Affected products and versions
| Product | Affected Version | Fixed Version |
|---|---|---|
| Forgejo | ≥ 9.0.0, < 15.0.12 | 15.0.12 [1] |
| Forgejo | ≥ 16.0.0, < 17.0.2 | 17.0.2 [1] |
Exploitation and threat intelligence status
CVE-2026-138408 is not included in the CISA Known Exploited Vulnerabilities Catalog as of 2026-11-29. There is no documented evidence of exploitation in the reviewed sources [2].
Detection and exposure assessment
Users can determine if they are at risk by checking if their Forgejo installation falls within the vulnerable range: ≥ 9.0.0, < 15.0.12 or ≥ 16.0.0, < 17.0.2 [1].
Remediation
Forgejo lists 15.0.12 and 17.0.2 as fixed versions [1].
Remediation checklist
Evidence gaps
- The sources do not provide details on the product's technical architecture or background.
- The sources do not elaborate on the root cause of the flaw beyond the CWE-602 reference.
- The sources do not offer specific attack scenarios or detailed exploitation steps.
- The sources do not include indicators of compromise.
- The sources do not mention alternative mitigation strategies or compensating controls.
References
- CVE-2026-138408 record. NIST National Vulnerability Database (NVD), 2026-11-29. https://nvd.nist.gov/vuln/detail/CVE-2026-138408. Accessed 2026-11-29.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-29. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-29.
Summary
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. Because Forgejo's OpenID Connect (OIDC) provider derives the email_verified claim from user.IsActive rather than the primary email address's activation state, an attacker can obtain signed ID tokens asserting email_verified: true for an arbitrary unverified email address, and potentially take over accounts on external relying parties that match users by verified email.
Severity breakdown
High · 7.7
An attacker with a normal user account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- yes, a normal user account
- User action needed
- no
- Scope
- reaches beyond the vulnerable component (e.g. from a sandbox or VM to the host)
- Impact
- high on integrity, none on confidentiality and availability
Weakness
- CWE-602: Client-Side Enforcement of Server-Side Security
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| Forgejo | ≥ 9.0.0, < 15.0.12 | 15.0.12 |
| ≥ 16.0.0, < 17.0.2 | 17.0.2 |
References by type
Other references
- codeberg.org/forgejo/forgejo/commit/04834f11abbdc164075aaf2bafaab375c55…
- codeberg.org/forgejo/forgejo/commit/0c4609133e9ec7da5cb061668f533ba4289…
- codeberg.org/forgejo/forgejo/commit/b3460f95c5aade136198ed5ca63a625d213…
- codeberg.org/forgejo/forgejo/pulls/15298
- codeberg.org/forgejo/forgejo/pulls/15299
- codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published…
- codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published…
Affected
- Forgejo
Frequently asked questions
What is CVE-2026-138408?
CVE-2026-138408 impacts Forgejo versions prior to 15.0.12 and 17.0.2, enabling authenticated users to manipulate email verification and potentially assume control of accounts on external platforms. The CVSS 3.1 rating is 7.7 HIGH, and CISA's catalog does not list the CVE as of 2026-11-29, which is not evidence that it has not been exploited. The fixed versions are 15.0.12 and 17.0.2. Weakness type: Client-Side Enforcement of Server-Side Security (CWE-602).
How severe is CVE-2026-138408?
CVE-2026-138408 has a CVSS 3.1 base score of 7.7 (high), from the CNA (mitre.org). An attacker with a normal user account can exploit this over the network, without any user action.
Is CVE-2026-138408 being exploited?
Not as far as is known: CVE-2026-138408 is not in CISA's Known Exploited Vulnerabilities catalog as of November 30, 2026.
Which versions are affected by CVE-2026-138408?
Forgejo ≥ 9.0.0, < 15.0.12 (fixed in 15.0.12); Forgejo ≥ 16.0.0, < 17.0.2 (fixed in 17.0.2).
How do I fix CVE-2026-138408?
Upgrade Forgejo to version 15.0.12 or 17.0.2 to resolve the vulnerability. Verify the installed version of Forgejo to ensure it is not within the vulnerable range. Assess access controls and authentication mechanisms to prevent unauthorized account modifications.
Timeline & sources
References
Related vulnerabilities & news
- Hide My WP Ghost Plugin Vulnerable to Stored XSS via Comment Parameter
- Fortinet FortiMail Authentication Flaw (CVE-2026-126157) Enables Cross-User Mailbox Access Without Login
- Actively exploited Barracuda command injection flaw lets attackers run commands as root
- Email::Address::XS Perl Module Flaw CVE-2026-120362 Can Add Unintended Mail Recipients; Fixed in 1.06
- D-Link DIR-820L Missing Authentication Vulnerability in TFTP Hook