CVE-2026-25779 Gitea redirect handling permits open redirects through backslash paths
Attackers can exploit backslash handling in redirect parameters to redirect users to malicious sites, requiring a patch to mitigate.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-25779?
CVE-2026-25779 is a medium-severity vulnerability in Gitea Open Source Git Server, published on 3 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Gitea versions up to and including 1.25.4 allow redirect bypasses through raw or percent-encoded backslashes in redirect_to values.
Weakness: CWE-601
Which versions are affected by CVE-2026-25779?
3 open source packages ship an affected version, including github.com/go-gitea/gitea and code.gitea.io/gitea.
| Package | Affected | Fixed in |
|---|---|---|
github.com/go-gitea/gitea Go | All versions | 1.26.0 |
github.com/go-gitea/gitea Go | All versions | 1.26.0 |
code.gitea.io/gitea Go | All versions | 1.26.0 |
How do I fix CVE-2026-25779?
Upgrade github.com/go-gitea/gitea to 1.26.0 or later.
Is CVE-2026-25779 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-25779 exists.
Sources
Also known as GHSA-j5r2-4c8j-xc3m, GO-2026-5448.