Incorrect AuthorizationWeakness · CWE-863

CVE-2026-26231

HIGH · 8.5 CVSS v3.1 Published 2026-07-03
Patch available
A vendor patch is available. No clean upgrade release — apply the published patch.
See remediation →
91/100
Remediation priority · Urgent
Remotely reachable Zero-click Patch available

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
Gitea versions up to and including 1.26.1 allow the Allow edits from maintainers permission path to authorize commits to repositories that the user can read but should not be able to write.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Gitea versions up to 1.26.1 contain a broken access control vulnerability in the 'Allow edits from maintainers' permission feature. The feature incorrectly authorizes users with read-only repository access to make commits, effectively granting them write access they should not have. This authorization bypass occurs due to improper validation of the permission path when processing edit requests.

MitigationUpgrade Gitea to a version beyond 1.26.1 that contains the security patch, or temporarily disable the 'Allow edits from maintainers' feature if an upgrade is not immediately feasible.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Scope
Changed
Confidentiality
Low
Integrity
High
Availability
None

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

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Check installed Gitea version
    Access the Gitea admin dashboard or run 'gitea --version' from the installation directory to retrieve the running version number.
    Affected if The installed version is 1.26.1 or any earlier version up to and including that release.
  2. Verify if Allow edits from maintainers feature is enabled
    Navigate to Repository Settings > Collaboration in the Gitea web interface and locate the 'Allow edits from maintainers' checkbox, or inspect the repository configuration file if accessible.
    Affected if The 'Allow edits from maintainers' option is checked or enabled for the repository.
  3. Review repository collaborator permissions
    In Repository Settings > Collaboration, examine the list of collaborators and their assigned access levels (Read, Write, Admin).
    Affected if Any collaborator assigned 'Read-only' access is present on the repository where the vulnerable feature is enabled.
  4. Confirm write access behavior for read-only users
    Attempt to push a commit or create a branch using a test account granted only read-only access to verify if the permission bypass is exploitable in your environment.
    Affected if A user with read-only access is able to push commits or modify the repository despite lacking write permissions.

You are affected if Gitea version 1.26.1 or earlier is running AND the 'Allow edits from maintainers' feature is enabled on any repository where read-only collaborators exist.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Patch available Apply the vendor patch
Vendor patch github.com →
Interim mitigation

Upgrade Gitea to a version beyond 1.26.1 that contains the security patch, or temporarily disable the 'Allow edits from maintainers' feature if an upgrade is not immediately feasible.

Recommended fix High confidence

Gitea 1.27.0 or later (any release after 1.26.1)

  1. 1. Identify current Gitea version by checking the administration dashboard or running `gitea --version`
  2. 2. Backup the Gitea database and configuration files before upgrading
  3. 3. Download the latest stable Gitea release (version 1.27.0 or later) from the official releases page at https://github.com/go-gitea/gitea/releases
  4. 4. Stop the Gitea service
  5. 5. Replace the existing Gitea binary with the new version
  6. 6. Review the configuration file for any version-specific changes in the release notes
  7. 7. Start the Gitea service
  8. 8. Verify the fix by confirming that users with read-only access to a repository cannot push commits even if 'Allow edits from maintainers' is enabled
Caveat Review Gitea release notes for version 1.27.0; minor configuration changes may be required between major versions

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation4.0 h
  • Implementation8.0 h
  • Testing8.0 h
  • Review / QA4.0 h
24.0 hours of engineering $4,160
Get the patch applied

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $6,656.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-26231 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-26231 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data