Skip to main content
VulnerabilityPublished

CVE-2026-138408: Forgejo · Client-Side Enforcement of Server-Side Security

Affects ForgejoSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 7.7 High : upgrade to 17.0.2 or 15.0.12 soon.

Data as of 29 Nov 2026, 18:15 UTC

CVSS 3.1 base score
7.7High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (mitre)CVSS 3.17.7
Patch
Available – fixed in 17.0.2, 15.0.12
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 29 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Nov 2026.

What to do

Upgrade Forgejo to 17.0.2 or 15.0.12.

Affected software

ProductAffectedFixed in
ForgejoForgejoAffected
  • >=16.0.0 <17.0.2
Fixed in
  • 17.0.2
ForgejoForgejoAffected
  • >=9.0.0 <15.0.12
Fixed in
  • 15.0.12

AI-suggested

Forgejo has released official fixes in versions 15.0.12 and 17.0.2 that correct the backend validation to ensure only verified email addresses can be set as primary and properly derive the email_verified claim from the email verification state. Users should upgrade affected Forgejo instances to at least version 15.0.12 or 17.0.2. No other mitigation is indicated by the vendor advisory.

Description

Forgejo versions before 15.0.12 and 16.x and 17.x before 17.0.2 contain a vulnerability where an authenticated user can spoof the email_verified status of an unverified secondary email address and set it as their primary email. This flaw arises because the backend does not verify email activation status when changing the primary email, and the OpenID Connect provider incorrectly derives the email_verified claim from user activity status rather than email verification state. This can lead to issuance of ID tokens asserting email_verified: true for unverified emails, potentially enabling account takeover on external services relying on Forgejo for authentication.

References

Community reviews

Loading reviews…