CVE-2026-129863
GitBucket through 4.48.0 Incorrect Authorization via Pull Request API Endpoints
GitBucket through 4.48.0 contains an incorrect authorization vulnerability that allows authenticated users to edit and merge other users' pull requests because the PATCH pulls and PUT pulls merge REST API endpoints only check read access. Attackers can close, reopen, retitle, retarget, or merge pull requests into the base branch without write permission on public repositories or as private-repository guest collaborators.
Fixes and workarounds
Fix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: CNA: VulnCheckFix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: CNA: VulnCheckAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| GitBucket GitBucket gitbucket/gitbucket
github |
≥ 0; ≤ 4.48.0 (affected, semver)
Other versions: unaffected |
CNA: VulnCheck |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 4.0 / 7.1 high |
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 | CNA: VulnCheck |
| 3.1 / 6.5 medium |
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N | CNA: VulnCheck |
| 4.0 / 7.1 high |
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X | NVD: [email protected] |
| 3.1 / 6.5 medium |
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N | NVD: [email protected] |
Exploit evidence
- https://hackmd.io/@hieund/gitbucket-pr-api-missing-write-authz
exploit · ADP: CISA-ADP
References
- https://github.com/gitbucket/gitbucket/issues/4179CNA: VulnCheck · issue-tracking
- https://github.com/gitbucket/gitbucket/pull/4181CNA: VulnCheck · issue-tracking, patch
- https://github.com/gitbucket/gitbucket/commit/876c8524967356dfea4a0508c4e1444ad8c80832CNA: VulnCheck · patch
- https://github.com/gitbucket/gitbucket/blob/4.48.0/src/main/scala/gitbucket/core/controller/api/ApiPullRequestControllerBase.scala#L155-L173CNA: VulnCheck · technical-description
- https://github.com/gitbucket/gitbucket/blob/4.48.0/src/main/scala/gitbucket/core/controller/api/ApiPullRequestControllerBase.scala#L229-L270CNA: VulnCheck · technical-description
- https://hackmd.io/@hieund/gitbucket-pr-api-missing-write-authzCNA: VulnCheck · third-party-advisory
- https://www.vulncheck.com/advisories/gitbucket-through-4.48.0-incorrect-authorization-via-pull-request-api-endpointsCNA: VulnCheck · third-party-advisory
- https://hackmd.io/@hieund/gitbucket-pr-api-missing-write-authzADP: CISA-ADP · exploit
- https://github.com/gitbucket/gitbucket/blob/4.48.0/src/main/scala/gitbucket/core/controller/api/ApiPullRequestControllerBase.scala#L155-L173[email protected]
- https://github.com/gitbucket/gitbucket/blob/4.48.0/src/main/scala/gitbucket/core/controller/api/ApiPullRequestControllerBase.scala#L229-L270[email protected]
- https://github.com/gitbucket/gitbucket/commit/876c8524967356dfea4a0508c4e1444ad8c80832[email protected]
- https://github.com/gitbucket/gitbucket/issues/4179[email protected]
- https://github.com/gitbucket/gitbucket/pull/4181[email protected]
- https://hackmd.io/@hieund/gitbucket-pr-api-missing-write-authz[email protected]
- https://www.vulncheck.com/advisories/gitbucket-through-4.48.0-incorrect-authorization-via-pull-request-api-endpoints[email protected]
- https://hackmd.io/@hieund/gitbucket-pr-api-missing-write-authz134c704f-9b21-4f2e-91b3-4a467353bcc0
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.