Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore
Security NewsNews Explainer

How Forgejo’s OIDC Email Claim Can Misidentify Users

Forgejo OIDC email verification flaw CVE-2026-138408 can misstate an address as verified. Check affected versions and relying-party account links.

By
Brandefense Research Team
Reviewed by
Brandefense Analyst Team
Published
30 November 2026
Reading time
9 min read
Abstract identity claim and email verification mismatch across applications

The Forgejo OIDC email verification flaw, CVE-2026-138408, can make an unverified address appear verified to an application that uses Forgejo for sign-in. The published CVE record rates it 7.7 on CVSS 3.1 and describes a conditional route to account takeover in an external service. The record contains no CVSS 4.0 rating. Forgejo identifies 15.0.12 and 17.0.2 as released versions, while the CVE record supplies the affected version boundaries.

The immediate decision is whether your Forgejo instance acts as an OpenID Connect provider for other applications. If it does, update Forgejo and examine how each relying application maps a Forgejo identity to an existing account. The CISO’s account takeover prevention guide gives broader response context; this article supplies the Forgejo version and identity-mapping details.

Where Does the Forgejo OIDC Email Verification Flaw Begin?

The CVE record describes a Forgejo user who already has an authenticated account. That user can have a secondary email address that has not been confirmed. With email confirmation enabled, the interface hides the option to make that address primary, but the server-side change did not enforce the same requirement. The distinction between a hidden control and a server-side check is the first trust boundary in this case.

After the unverified secondary address becomes primary, Forgejo’s OIDC provider can report it as verified. According to the CVE record, the provider determines the email_verified claim from the user’s active account state. It does not derive that claim from the activation state of the current primary email address. An active user account and control of a particular email inbox are different facts.

The OpenID Connect Core specification gives email_verified a specific meaning: the provider took steps to establish control of the address. It also warns relying parties that an email value is not necessarily unique. In this flaw, the signed identity assertion may be valid as a token while its email-verification statement is wrong. Signature validation alone cannot repair a mistaken claim issued by the trusted provider.

Sequence diagramSequence diagram with 3 actors (Forgejo user, Forgejo OIDC provider, Relying application) and 3 messages: 1, Forgejo user to Forgejo OIDC provider: Changes primary email to an unverified secondary address; 2, Forgejo OIDC provider to Relying application: Issues an identity claim with email_verified true; 3, Relying application to Forgejo user: May match the email to an existing local account.Forgejo userForgejo OIDCproviderRelyingapplication1. Changes primary email toan unverified secondaryaddress2. Issues an identity claimwith email_verified true3. May match the email to an existing local account
  1. 1Forgejo user Forgejo OIDC providerChanges primary email to an unverified secondary address
  2. 2Forgejo OIDC provider Relying applicationIssues an identity claim with email_verified true
  3. 3Relying application Forgejo userMay match the email to an existing local account

How Can a Valid Identity Token Lead to the Wrong Account?

The third boundary is in the application that trusts Forgejo. The CVE record says takeover is possible when an external service matches accounts by a verified email address. If the application treats that address as sufficient proof of ownership, a false verification claim can influence which local account receives the session. This is a conditional risk, not a statement that every Forgejo integration grants takeover.

Consider an application with one local account associated with a particular email address and a separate Forgejo user. If the Forgejo user’s unverified address is accepted as primary, the OIDC assertion can present that address with email_verified set to true. The relying application may then connect the Forgejo sign-in to the local account. This example describes the trust relationship in the record; it is not an observed incident.

The same token may cause no account collision in an application that keys users to a stable provider identity. OpenID Connect Core identifies the issuer and subject together as the stable user identifier. The email claim can change and is not guaranteed unique by the specification. Review the actual account-linking rule in each application instead of assuming that its OIDC support settles the question.

This is why the flaw should not be described as unauthenticated code execution or a universal Forgejo login bypass. The CVE requires an authenticated Forgejo user and describes an identity claim crossing into an external relying party. The effect depends on whether that party accepts verified email for account matching. A review of local identity mappings gives a more useful exposure answer than the CVSS score alone.

Which Forgejo Installations Need Attention?

The published CVE record names Forgejo before 15.0.12, all 16.x releases, and 17.x before 17.0.2. Its structured affected ranges begin at 9.0.0 and 16.0.0 respectively. Administrators can use the vulnerability intelligence platform page as product context while comparing each running version with these boundaries and the deployment’s upgrade path. Forgejo’s release page lists 16.x among discontinued releases, so remaining on that branch is not a fix.

Installed branch Record’s affected scope Release to evaluate
9.x through 15.x 9.0.0 through versions before 15.0.12 15.0.12 or a supported later branch
16.x 16.0.0 through the 16.x branch Move to a supported fixed branch
17.x Versions before 17.0.2 17.0.2 or later

These are CVE-record boundaries, with the published Forgejo release page confirming that 15.0.12 and 17.0.2 exist. The page does not itself explain a migration procedure for every older installation. Treat the table as a triage guide, then follow Forgejo’s supported upgrade instructions for your deployment. After the change, verify the version actually running behind each exposed sign-in integration.

Configuration matters alongside the version. The CVE record describes the path when Forgejo’s service email confirmation setting is enabled. That may surprise teams that regard email confirmation as a sufficient guard. The setting does not turn a server-side acceptance error into a safe outcome, so it should not be used as an exemption from the upgrade.

Where Should Defenders Look for Exposure?

First, inventory applications that use this Forgejo instance as their OIDC provider. Forgejo’s documentation confirms that it can act as an OAuth2 and OIDC provider for third-party applications. The relevant exposure is the path from that provider to each relying application, not every project hosted on the same Forgejo server. Record the application owner and its account-linking behavior.

For each relying application, ask whether an existing account can be found or linked by email. Then determine whether the application requires email_verified and whether it also checks the issuer and subject. These checks describe our defensive review of the CVE and the OpenID specification. They are not a claim that any named application uses an unsafe mapping.

Prioritize integrations with valuable accounts and automatic account linking. A manual approval step or an existing subject binding changes the practical exposure, but the answer must come from the application’s configuration. Keep the provider’s software version beside the relying application’s identity-mapping rule in the same review record. That pairing makes the exposure decision auditable after the upgrade.

Our count adds a narrow research signal. Brandefense Blackhole counted one dark-chat post matching CVE-2026-138408 from August 31 through November 29, 2026. The unit is a matching post, not a unique actor, affected user or confirmed exploit event. This count is not evidence that the described account takeover occurred in a particular environment.

What Can an Investigation Verify Without Replaying the Flaw?

Administrators can review whether primary email changes occurred on affected Forgejo versions. Compare account-change records with the verification state of the addresses involved, using records already available to the organization. Where a suspicious change appears, examine sign-ins at relying applications that used the same Forgejo identity. This is a defensive review path based on the disclosed mechanism, not a claim about an observed campaign.

In the relying application, look for links between one provider identity and a local account previously associated with another identity. Changes to linked accounts, session starts and access to sensitive resources may help establish impact. Interpret logs in context because an email change alone does not prove misuse. Preserve the original Forgejo account identifier and the relying application’s recorded identifier while reviewing the sequence.

Do not assume that a signed token with email_verified true resolves the dispute. The source record’s problem is that the provider may assert that value for an unverified address. Compare the assertion with Forgejo’s address state and the application’s linking decision. If those facts disagree, contain the affected account while the integration owner reviews the mapping.

What Should Teams Change First?

Update affected Forgejo installations to an appropriate fixed release. Forgejo lists 15.0.12 and 17.0.2 on its release page, and the CVE record places the affected boundaries before those versions. For discontinued 16.x installations, plan a move to a supported branch. Verify the deployed build after the update, including any replicas that still serve OIDC sign-ins.

Next, review the account-linking rule in every application that trusts Forgejo. OpenID Connect Core says issuer and subject together identify the user reliably, while email alone may change or overlap. Where an application relies on verified email to connect an account, require an explicit, trustworthy binding decision. This is our recommended defense based on the disclosed failure and the standard.

Finally, review account changes and relying-party links made while affected versions were running. Where an incorrect link is identified, suspend or reverse the link under the application’s own incident procedure. Reset sessions or credentials only when the investigation shows they are implicated. Keep the upgrade, identity-mapping change and investigation as separate work items so each can be verified.

Forgejo OIDC response
  • Inventory relying applicationsIdentify each service using this Forgejo instance for OIDC sign-in.
  • Verify installed versionsCompare every running Forgejo instance with the CVE record’s fixed boundaries.
  • Review account matchingCheck whether relying applications use email, issuer and subject to link users.
  • Inspect prior changesReconcile primary-email changes with verification and relying-party account links.
  • Confirm the fixVerify the upgraded version and test the approved sign-in path.

What Remains a Conditional Risk?

The record describes a path that can sometimes lead to account takeover in an external service. It does not give a count of affected relying applications or users. Our analysis therefore separates the Forgejo behavior, which the CVE record describes, from the downstream decision each application makes. That decision determines whether a false email-verification claim becomes an account-linking error.

Teams can resolve that uncertainty locally by checking their actual identity bindings. The account takeover glossary gives general context, while this article focuses on the Forgejo-to-application trust boundary. Keep the provider version and the relying application’s mapping rule together in the incident record. They answer different parts of the same exposure question.

Frequently Asked Questions

Which relying applications should we review first?

Start with applications using Forgejo OIDC that automatically link existing accounts by verified email. Confirm their actual mapping rules and account value before prioritizing.

What evidence helps check a suspicious account link?

Review Forgejo primary-email changes, address verification state, and the relying application’s provider identity and account-link records. A change alone does not prove misuse.

Should we reset every user session after upgrading?

Use the investigation to identify incorrect links or implicated sessions. Contain those accounts under the application’s incident procedure and verify the updated Forgejo build.

Sources

  1. CVE Program, CVE-2026-138408 record, November 29, 2026
  2. Forgejo, release index, checked November 29, 2026
  3. Forgejo, OAuth2 provider documentation, v17.0
  4. OpenID Foundation, OpenID Connect Core 1.0
Share this articleLinkedInXEmail
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →