Skip to main content

Forgejo EUVDEUVD-2026-137805

| CVE-2026-138408 HIGH
Client-Side Enforcement of Server-Side Security (CWE-602)
2026-11-29 cve@mitre.org GHSA-99gf-43gm-6rwh
7.7
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privilege Forgejo user
  2. Delivery
    Add attacker-chosen unverified secondary email
  3. Exploit
    POST to /user/settings/account/email to set it primary
  4. Execution
    Obtain OIDC ID token asserting email_verified:true
  5. Impact
    Take 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Forgejo 16.0.0 <17.0.2
Forgejo 9.0.0 <15.0.12

Affected Packages

euvd forgejo fix: 15.0.12, 17.0.2

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

Vendor (mitre) PRIMARY 7.7 HIGH
AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
vuln.today AI 7.7 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch available
Nov 29, 2026 - 19:16 EUVD
CVE Published
Nov 29, 2026 - 18:17 cve.org
HIGH 7.7

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.6%
Top 58% exploitable
Prevalence
Low
self-hosted Git forge (Gitea fork), modest niche deployment footprint
Social Media
2
Sightings
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
CVE-2026-89094 CRITICAL
9.9 Sep 10

Remote code execution in Forgejo before 16.0.4 allows an authenticated user who can supply a template repository to run

CVE-2025-68937 CRITICAL
9.5 Dec 26

Forgejo before 13.0.2 (and the 11 LTS line before 11.0.7) mishandles out-of-repository symlink destinations when generat

CVE-2023-49946 CRITICAL
9.1 Dec 03

In Forgejo before 1.20.5-1, certain endpoints do not check whether an object belongs to a repository for which permissio

CVE-2023-49947 HIGH
7.5 Dec 03

Forgejo before 1.20.5-1 allows 2FA bypass when docker login uses Basic Authentication. Rated high severity (CVSS 7.5), t

CVE-2026-119545 MEDIUM
6.9 Oct 30

Unauthenticated blind server-side request forgery in Forgejo (through 15.0.11, 16.0.0 through 16.0.7, and 17.0.0 through

CVE-2026-119546 MEDIUM
6.8 Oct 30

Forgejo's restore-repo CLI can be induced to read files outside the dump directory - including repository configuration

CVE-2026-82556 LOW POC
2.1 Aug 30

Server-side request forgery in Forgejo up to 15.0.4 allows authenticated users to bypass the repository migration IP all

CVE-2026-59102 LOW POC
2.1 Jul 02

Stored XSS in Forgejo before 15.0.3 allows authenticated users to execute arbitrary JavaScript in other users' browsers

CVE-2026-119547 MEDIUM
5.3 Oct 30

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

CVE-2023-49948 MEDIUM
5.3 Dec 03

Forgejo before 1.20.5-1 allows remote attackers to test for the existence of private user accounts by appending .rss (or

CVE-2026-90679 MEDIUM
4.3 Sep 13

Identity spoofing in Forgejo's ActivityPub federation allows a remote attacker who controls any single valid ActivityPub

CVE-2026-89151 LOW
3.5 Sep 11

Restricted API token authorization bypass in Forgejo before 16.0.4 (and before 15.0.8 on the 15.x branch) allows authent

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy