github.com/go-gitea/gitea
Affected
- introduced
0, fixed1.26.0(semver)
Fixed versions
1.26.0
Fix
- Fixed version
1.26.0go get github.com/go-gitea/[email protected]
Advisory
Also known as: CVE-2026-25779, GO-2026-5448
Gitea: Open Redirect via redirect_to
Details
Despite the validation within urlIsRelative in modules/httplib/url.go, an open redirect is still possible due to usage of directory traversal sequences plus a back-slash in the "redirect_to" parameter.
PoC
When a user uses this URL to login:
https://gitea.com/user/login?redirect_to=/a/../\example.com
They would be redirected to example.com upon a successful login to their gitea account.
Impact
Medium Basis: The source's own band: MODERATE
0, fixed 1.26.0 (semver)1.26.0
1.26.0go get github.com/go-gitea/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0