Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege Forgejo user
-
DeliveryAdd attacker-chosen unverified secondary email
-
ExploitPOST to /user/settings/account/email to set it primary
-
ExecutionObtain OIDC ID token asserting email_verified:true
-
ImpactTake over matching account on external relying party
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V4 - API and Web Service Server-side security enforcement
|
| Exploitation Conditions | Requires an authenticated Forgejo account (PR:L) on an instance where SERVICE REGISTER_EMAIL_CONFIRM is enabled, and requires Forgejo to be used as an OIDC/OpenID Connect identity provider for one or more external relying parties that match users by verified email. The attacker must add the target email as an unverified secondary address and invoke the backend POST /user/settings/account/email handler directly (the web UI hides the 'Make primary' control for unverified addresses, so exploitation bypasses the UI but not the API). Limiting factors: the attack yields no takeover unless a downstream relying party trusts the email_verified claim and keys accounts on email; instances not using Forgejo OIDC federation, or with REGISTER_EMAIL_CONFIRM disabled, are not exposed to the account-takeover outcome. The exact HTTP request format beyond the named handler is not further detailed in the available sources. |
| Impact | The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N, 7.7) is internally consistent with the description: exploitation is over the network, low complexity, requires an authenticated low-privilege Forgejo account (PR:L), needs no user interaction, and crosses a trust boundary (S:C) because the forged email_verified claim affects external relying parties rather than Forgejo itself. Integrity impact is High (identity assertion is falsified) while confidentiality and availability are rated None, which is defensible since the direct Forgejo-side effect is a bogus signed claim rather than data disclosure - though downstream account takeover on a relying party could in practice yield confidentiality loss there. The vuln.today priority is 'this_week' rather than act_now/emergency. No EPSS score, no CISA KEV listing, and no exploitation data were provided, so there is no evidence of active exploitation or mass-scanning; the referenced codeberg commits and pull requests are the vendor fixes, not exploit code. Real-world risk is moderate and conditional: it is a genuine authentication-integrity flaw worth patching promptly, but it is gated on an authenticated account, a specific configuration, and Forgejo being used as an OIDC identity provider for other services - so it is more a targeted-abuse scenario than a wormable, widespread threat. |
| Exploit ScenarioDerived | An attacker registers or uses an existing authenticated Forgejo account on an instance where SERVICE REGISTER_EMAIL_CONFIRM is enabled, adds a secondary email they do not control (e.g. victim@company.com), and - despite the UI hiding the 'Make primary' button - calls the backend POST /user/settings/account/email handler directly to set that unverified address as primary. Because the OIDC provider derives email_verified from user.IsActive rather than the address's activation state, Forgejo then issues a signed ID token asserting email_verified:true for that address, allowing takeover of any external relying-party account matched by verified email. No public exploit identified at time of analysis, though the mechanism is fully described and the backend request is trivial to craft. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 29, 2026
Forgejo before 15.0.12 and 17.x before 17.0.2 (with the 16.x branch also listed as affected) permits an authenticated user to promote an unverified secondary email address to primary, after which Forgejo's OpenID Connect provider issues signed ID tokens asserting email_verified: true for that unconfirmed address. External relying parties that federate to Forgejo and match or link accounts by verified email can consequently be taken over by the attacker. The flaw is a server-side enforcement gap (CWE-602), since the web UI hides the 'Make primary' control but the backend handler does not re-check activation; no public exploit code was identified in the available sources, and CVSS 3.1 scores it 7.7 (AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N).
RemediationAI
Vendor-released patch: upgrade to Forgejo 15.0.12 or 17.0.2, the fixed releases named in the advisories (https://codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/15.0.12.md and https://codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/17.0.2.md); the specific commits are 04834f11abbdc164075aaf2bafaab375c555e832, 0c4609133e9ec7da5cb061668f533ba42894c824 and b3460f95c5aade136198ed5ca63a625d2134549c, with pull requests 15298 and 15299. No fixed 16.x build is enumerated in the supplied references, so 16.x operators should track the vendor release notes for the branch-specific fix rather than assume a version. Because exploitation requires a relying party to trust the email_verified claim, interim risk reduction is to configure downstream OIDC clients to key accounts on the stable subject (sub) identifier instead of email, or to stop trusting the email_verified claim from this Forgejo instance - the trade-off is that legitimate email-based account linking and any email-keyed provisioning must be reworked, and some relying parties cannot be reconfigured this way. Instances that do not use Forgejo as an OIDC provider, or that run with SERVICE REGISTER_EMAIL_CONFIRM disabled, do not reach the account-takeover outcome described here. Note that the web UI hiding the 'Make primary' control is not a mitigation: the vulnerable backend endpoint remains reachable directly until patched.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-602, client-side enforcement of server-side security: the Forgejo web interface withholds the 'Make primary' button for unverified addresses, but the server-side path that performs the same change - the POST /user/settings/account/email handler (EmailPost in routers/web/user/setting/account.go) together with MakeEmailAddressPrimary in services/user/email.go - did not verify whether the target address had been activated. This matters because Forgejo acts as an OpenID Connect identity provider and derives the email_verified claim from the user record's IsActive flag rather than from the activation state of the primary email address, so a user account in good standing produces a token vouching for an arbitrary, never-confirmed address. The CVSS scope change (S:C) reflects that the integrity impact lands on downstream relying parties rather than on Forgejo itself (C:N/I:H/A:N). The upstream remediation is split across multiple commits and pull requests in the referenced release notes for 15.0.12 and 17.0.2; the supplied sources do not describe any further trigger detail beyond the named handler and service function.
Know when Forgejo gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
Authenticated low-priv user (PR:L) sends a straightforward network API request (AV:N/AC:L/UI:N); the forged signed claim affects external relying parties (S:C) with High integrity impact and no C/A effect on Forgejo itself.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
Forgejo, a widely used self-hosted Git service, has a high-severity vulnerability (CVE-2026-138408) that allows any authenticated user to manipulate their email verification status, potentially leading to account takeover on external systems that rely on Forgejo for authentication. This undermines the integrity of identity federation across connected applications, posing a significant risk to organizations that use Forgejo as an identity provider. Leadership should prioritize this due to the potential for unauthorized access to sensitive resources and reputational damage.
No vendor-released patch identified at time of analysis; interim mitigations include auditing and correcting email verification statuses, restricting reliance on Forgejo as an identity provider, and implementing additional verification checks at relying parties.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Remote code execution in Forgejo before 16.0.4 allows an authenticated user who can supply a template repository to run
Forgejo before 13.0.2 (and the 11 LTS line before 11.0.7) mishandles out-of-repository symlink destinations when generat
In Forgejo before 1.20.5-1, certain endpoints do not check whether an object belongs to a repository for which permissio
Forgejo before 1.20.5-1 allows 2FA bypass when docker login uses Basic Authentication. Rated high severity (CVSS 7.5), t
Unauthenticated blind server-side request forgery in Forgejo (through 15.0.11, 16.0.0 through 16.0.7, and 17.0.0 through
Forgejo's restore-repo CLI can be induced to read files outside the dump directory - including repository configuration
Server-side request forgery in Forgejo up to 15.0.4 allows authenticated users to bypass the repository migration IP all
Stored XSS in Forgejo before 15.0.3 allows authenticated users to execute arbitrary JavaScript in other users' browsers
Forgejo through 15.0.11, 16.0.0 through 16.0.7, and 17.0.0 through 17.0.1 lets an authenticated user with a read:user-sc
Forgejo before 1.20.5-1 allows remote attackers to test for the existence of private user accounts by appending .rss (or
Identity spoofing in Forgejo's ActivityPub federation allows a remote attacker who controls any single valid ActivityPub
Restricted API token authorization bypass in Forgejo before 16.0.4 (and before 15.0.8 on the 15.x branch) allows authent
EUVD-2026-137805
GHSA-99gf-43gm-6rwh
NVD
CVE.org
EPSS
Exploit-DB