HIGH7.5
GHSA-v8f2-2ghq-9whv
Gitea forwarded-proto validation allows canonical URL spoofing
Quick fix
GHSA-v8f2-2ghq-9whv — code.gitea.io/gitea: upgrade to the fixed version with the command below.
go get code.gitea.io/gitea@v1.25.5Details
Gitea versions before 1.25.5 accept malformed or injected forwarded-proto values when detecting public URLs, allowing spoofed canonical URL generation.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-27779[ADVISORY]
- https://github.com/go-gitea/gitea/pull/36810[WEB]
- https://github.com/go-gitea/gitea/pull/36836[WEB]
- https://github.com/go-gitea/gitea/commit/723ce3579f96e75fd12514283023a051a1432b1b[WEB]
- https://github.com/go-gitea/gitea/commit/e2517e0fa93177ef6947245eaeab543c95ef18ff[WEB]
- https://blog.gitea.com/release-of-1.25.5[WEB]
- https://github.com/go-gitea/gitea[PACKAGE]
- https://github.com/go-gitea/gitea/releases/tag/v1.25.5[WEB]