Security Resilience

CVE-2026-138408

Forgejo

Published
29 November 2026
Modified
29 November 2026
CVSS Score v3.1 7.7
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
EPSS Score 0.0059 42th percentile
Risk Priority 55 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-138408 is a high-severity Client-Side Enforcement of Server-Side Security (CWE-602) vulnerability in Forgejo (named in the CVE record; NVD lists no product yet). Its CVSS base score is 7.7 (High).

Operationally, ranked at the 42th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

CVEs Like This One

CVE-2026-13930Shared CWE-602
CVE-2026-65051Shared CWE-602
CVE-2024-0701Shared CWE-602
CVE-2026-15130Shared CWE-602
CVE-2025-36327Shared CWE-602
CVE-2025-33025Shared CWE-602
CVE-2024-52008Shared CWE-602
CVE-2023-48789Shared CWE-602
CVE-2026-14036Shared CWE-602
CVE-2024-41750Shared CWE-602

Affected Assets

Forgejo
Forgejo
named in the CVE record; NVD lists no product yet

Mitigating Controls

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing can detect client-side enforcement but is not the primary mitigation.

blocks

Information access restriction is undermined when the client is trusted to enforce it.

prevents

Secure coding standards require server-side checks and reject client-only enforcement.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-602, a class-level weakness, and none of its children carries one either.

References