PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-128359 Gitea CVE debrief

Gitea OAuth2 provider tokens issued to disabled users. When Gitea acts as an OAuth2 or OpenID Connect provider, the token endpoint did not check the state of the user, allowing existing refresh tokens and unused authorization codes of disabled users to be exchanged for new tokens. This vulnerability allowed applications to keep disabled users signed in even after their accounts were deactivated or sign-in was prohibited. The impact is limited to Gitea instances acting as OAuth2 or OpenID Connect providers. The token endpoint now refuses users who may not sign in, and token introspection reports their tokens as inactive.

Vendor
Gitea
Product
Unknown
CVSS
Unknown
CISA KEV
Not listed in stored evidence
Original CVE published
2026-11-15
Original CVE updated
2026-11-16
Advisory published
2026-11-15
Advisory updated
2026-11-16

Who should care

Defenders responsible for Gitea instances, particularly those using OAuth2 for authentication, should assess exposure and verify updates to prevent unauthorized access. This includes reviewing and revoking existing OAuth2 tokens issued to disabled users and implementing additional monitoring for OAuth2 token usage. Security teams and vulnerability management teams should prioritize verifying and updating Gitea instances to prevent unauthorized access via

Why it matters

Defenders should prioritize verifying and updating Gitea instances to prevent unauthorized access via OAuth2 tokens issued to disabled users. This vulnerability allowed applications to keep disabled users signed in even after their accounts were deactivated or sign-in was prohibited. The impact is limited to Gitea instances acting as OAuth2 or OpenID Connect providers. Evidence is based on official CVE and source item records.

  • Verification of Gitea instance updates to prevent unauthorized access
  • Revocation of existing OAuth2 tokens issued to disabled users
  • Monitoring of OAuth2 token usage for potential abuse

Technical summary

Gitea's OAuth2 provider did not check the state of the user when issuing tokens, allowing existing refresh tokens and unused authorization codes of disabled users to be exchanged for new tokens. The token endpoint now refuses users who may not sign in, and token introspection reports their tokens as inactive. This issue was addressed by updating the token endpoint to validate user state before issuing tokens, ensuring that only active users can obtain new tokens. Affected Gitea instances should be updated to version 28.4.0 or later to prevent unauthorized access.

Defensive priority

Defenders should prioritize verifying and updating Gitea instances to prevent unauthorized access via OAuth2 tokens issued to disabled users.

Recommended defensive actions

  • Verify Gitea instances are updated to version 28.4.0 or later
  • Review and revoke any existing OAuth2 tokens issued to disabled users
  • Implement additional monitoring for OAuth2 token usage
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.
  • Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance.
  • Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed.
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review.

Evidence notes

The CVE record and source item provide details on the vulnerability in Gitea's OAuth2 provider, which allowed tokens to be issued to disabled users. The source item includes references to vendor advisories, patches, and release notes.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-128359 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-128359

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-128359 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-128359

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Gitea OAuth2 provider tokens issued to disabled users

    Unverified legacy reference

    URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/128xxx/CVE-2026-128359.json

    cve_program_cvelist_v5

  • Source reference

    Unverified legacy reference

    URL: https://github.com/go-gitea/gitea/security/advisories/GHSA-jrjr-q3rq-f899

    Supplemental source - vendor-advisory

  • Source reference

    Unverified legacy reference

    URL: https://github.com/go-gitea/gitea/pull/40131

    Supplemental source - patch

  • Source reference

    Unverified legacy reference

    URL: https://github.com/go-gitea/gitea/pull/40281

    Supplemental source - patch

  • Source reference

    Unverified legacy reference

    URL: https://blog.gitea.com/release-of-28.4.0/

    Supplemental source - release-notes

  • Source reference

    Unverified legacy reference

    URL: https://github.com/go-gitea/gitea/releases/tag/v28.4.0

    Supplemental source - release-notes

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.