CVE-2026-138408
Deferred Deferred - Pending Action

Email Verification Spoofing in Forgejo

Vulnerability report for CVE-2026-138408, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-29

Last updated on: 2026-11-29

Assigner: MITRE

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-29
Last Modified
2026-11-29
Generated
2026-11-29
AI Q&A
2026-11-29
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
Forgejo Forgejo From 9.0.0 (inc) to 15.0.12 (exc)
Forgejo Forgejo From 16.0.0 (inc) to 17.0.2 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-602 The product is composed of a server that relies on the client to implement a mechanism that is intended to protect the server.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in Forgejo versions before 15.0.12 and 17.x before 17.0.2 allows an attacker to spoof the email_verified flag. By setting an unverified secondary email as primary, an authenticated user can trick external services relying on Forgejo for authentication into believing the email is verified. This happens because Forgejo's OIDC provider uses user.IsActive instead of email activation state to set email_verified in ID tokens.

Impact Analysis

An attacker could exploit this to gain unauthorized access to accounts on external services that match users by verified email. If you use Forgejo for authentication with third-party services, your account on those services could be compromised even if your email isn't verified in Forgejo.

Compliance Impact

This vulnerability could lead to unauthorized access to personal data, violating GDPR's data protection principles and HIPAA's access controls. Organizations using Forgejo for authentication may fail to meet compliance requirements for user verification and secure access.

Mitigation Strategies

Upgrade Forgejo to version 15.0.12, 17.0.2, or later to address the email_verified spoofing issue. Review and disable REGISTER_EMAIL_CONFIRM if not required. Audit user email verification statuses and invalidate unverified primary emails.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-138408. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...