Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Web

CVE-2026-138408 — Forgejo

High · CVSS 7.7 First seen November 29, 2026
WebNetwork devicesEmailVulnerabilities

Research article

Forgejo Email Verification Flaw Enables Account Takeover Vulnerability

CVECVE-2026-138408
Vendor and productForgejo
PublishedNovember 29, 2026 20:05 UTC
Research cut-offNovember 29, 2026 19:45 UTC
Sources reviewed2: NVD record (last modified 2026-11-29); CISA KEV catalog

Executive summary

CVE-2026-138408 impacts Forgejo versions prior to 15.0.12 and 17.0.2, enabling authenticated users to manipulate email verification and potentially assume control of accounts on external platforms [1]. The CVSS 3.1 rating is 7.7 HIGH [1], and CISA's catalog does not list the CVE as of 2026-11-29, which is not evidence that it has not been exploited [2]. The fixed versions are 15.0.12 and 17.0.2 [1].

Key points

  • CVE-2026-138408 allows authenticated users to manipulate email verification in Forgejo versions before 15.0.12 and 17.0.2 [1].
  • The CVSS 3.1 score is 7.7 HIGH, reflecting a high integrity impact with no confidentiality or availability impact [1].
  • CISA's Known Exploited Vulnerabilities Catalog does not include this CVE as of 2026-11-29 [2].
  • Users should update to Forgejo 15.0.12 or 17.0.2 to reduce the risk [1].

Vulnerability identification

FieldValue
CVE IDCVE-2026-138408 [1]
VendorForgejo [1]
CWECWE-602 [1]
CVSS 3.17.7 HIGH, scored by cve@mitre.org (Secondary) [1]
Published2026-11-29 [1]
Last Modified2026-11-29 [1]
Record StatusDeferred [1]

Vulnerability description

This flaw enables an authenticated user to designate an unverified secondary email as their primary contact if the REGISTEREMAILCONFIRM feature is active. The backend system fails to validate the activation status of the email address, which may allow unauthorized access to external services that depend on Forgejo for authentication [1].

Attack surface and exploitation prerequisites

The vulnerability's CVSS vector indicates it requires no user input and can be accessed remotely. The attacker must be an authenticated user [1].

Impact analysis

The CVSS vector shows no impact on data confidentiality, but it can result in a high integrity threat. The system may be vulnerable to unauthorized changes in user data or account configurations [1].

Affected products and versions

ProductAffected VersionFixed Version
Forgejo≥ 9.0.0, < 15.0.1215.0.12 [1]
Forgejo≥ 16.0.0, < 17.0.217.0.2 [1]

Exploitation and threat intelligence status

CVE-2026-138408 is not included in the CISA Known Exploited Vulnerabilities Catalog as of 2026-11-29. There is no documented evidence of exploitation in the reviewed sources [2].

Detection and exposure assessment

Users can determine if they are at risk by checking if their Forgejo installation falls within the vulnerable range: ≥ 9.0.0, < 15.0.12 or ≥ 16.0.0, < 17.0.2 [1].

Remediation

Forgejo lists 15.0.12 and 17.0.2 as fixed versions [1].

Remediation checklist

  1. Upgrade Forgejo to version 15.0.12 or 17.0.2 to resolve the vulnerability [1].
  2. Verify the installed version of Forgejo to ensure it is not within the vulnerable range [1].
  3. Assess access controls and authentication mechanisms to prevent unauthorized account modifications.

Evidence gaps

  • The sources do not provide details on the product's technical architecture or background.
  • The sources do not elaborate on the root cause of the flaw beyond the CWE-602 reference.
  • The sources do not offer specific attack scenarios or detailed exploitation steps.
  • The sources do not include indicators of compromise.
  • The sources do not mention alternative mitigation strategies or compensating controls.

References

  1. CVE-2026-138408 record. NIST National Vulnerability Database (NVD), 2026-11-29. https://nvd.nist.gov/vuln/detail/CVE-2026-138408. Accessed 2026-11-29. CVE record with description, CVSS scores, affected versions, and CWE information.
  2. Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-29. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-29. CISA KEV status indicating the vulnerability is not listed as exploited.

Written with AI assistance from the 2 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

Summary

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

High · 7.7 CVSS 3.1 base score from the CNA (mitre.org)

An attacker with a normal user account can exploit this over the network, without any user action.

Attack from
the network (remotely)
Attack complexity
low (no special conditions)
Login needed
yes, a normal user account
User action needed
no
Scope
reaches beyond the vulnerable component (e.g. from a sandbox or VM to the host)
Impact
high on integrity, none on confidentiality and availability

Vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N

Weakness

  • CWE-602: Client-Side Enforcement of Server-Side Security

Affected and fixed versions

ProductAffected versionsFixed in
Forgejo≥ 9.0.0, < 15.0.1215.0.12
≥ 16.0.0, < 17.0.217.0.2

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Other references

Details from NVD (public domain).

Affected

  • Forgejo

Frequently asked questions

What is CVE-2026-138408?

CVE-2026-138408 impacts Forgejo versions prior to 15.0.12 and 17.0.2, enabling authenticated users to manipulate email verification and potentially assume control of accounts on external platforms. The CVSS 3.1 rating is 7.7 HIGH, and CISA's catalog does not list the CVE as of 2026-11-29, which is not evidence that it has not been exploited. The fixed versions are 15.0.12 and 17.0.2. Weakness type: Client-Side Enforcement of Server-Side Security (CWE-602).

How severe is CVE-2026-138408?

CVE-2026-138408 has a CVSS 3.1 base score of 7.7 (high), from the CNA (mitre.org). An attacker with a normal user account can exploit this over the network, without any user action.

Is CVE-2026-138408 being exploited?

Not as far as is known: CVE-2026-138408 is not in CISA's Known Exploited Vulnerabilities catalog as of November 30, 2026.

Which versions are affected by CVE-2026-138408?

Forgejo ≥ 9.0.0, < 15.0.12 (fixed in 15.0.12); Forgejo ≥ 16.0.0, < 17.0.2 (fixed in 17.0.2).

How do I fix CVE-2026-138408?

Upgrade Forgejo to version 15.0.12 or 17.0.2 to resolve the vulnerability. Verify the installed version of Forgejo to ensure it is not within the vulnerable range. Assess access controls and authentication mechanisms to prevent unauthorized account modifications.

Timeline & sources

References

Related vulnerabilities & news