CVE-2026-138408

7.7High

Published Nov 29, 2026 · NVD status: Deferred · AI triage by gemini-3.1-flash-lite

7.7CVSS

High

0CVSS v3.110

Attack vector
Network
Complexity
Low
Privileges
Low
User action
None
Impact
High impact on integrity
Weakness
CWE-602

What an attacker gets

Authenticated attackers can spoof email verification status to perform account takeovers on external services using Forgejo for OIDC authentication. This occurs because the backend fails to validate email activation status when setting a primary address.

Root cause

The backend email update handler fails to verify that an email address is activated before allowing it to be set as the primary address.

Affected versions

Forgejo before 15.0.12, 16.x, and 17.x before 17.0.2

CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N

Fix & remediation

Upgrade to Forgejo 15.0.12 or 17.0.2. If you cannot upgrade immediately, disable OIDC provider functionality or restrict external service reliance on Forgejo email verification claims.

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

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

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-138408

More fully triaged vulnerabilities you may want to check next.