Vulnerability advisory
CVE-2026-25119
Gogs: Authentication Bypass via Unvalidated Reverse Proxy Headers
Also known as GHSA-w6j9-vw59-27wvGO-2026-5695
Severity
- CVSS 4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/gogs/gogs ↗ | |
| All commits before 3ba8aca90e17e5410b7e8b227c9f29256ac3e875 | 3ba8aca90e17e5410b7e8b227c9f29256ac3e875 |
| Not specified | 0089c4c8e5b8d99eb6e5c8727f8f40d765f1f58a |
Also listed as affected (60)
| |
Description
Gogs is an open source self-hosted Git service. Prior to 0.14.3, when ENABLE_REVERSE_PROXY_AUTHENTICATION is enabled, Gogs accepts the configured authentication header (default: X-WEBAUTH-USER) directly from client requests without validating that the request originated from a trusted reverse proxy. Any remote attacker who can reach the Gogs service can forge this header to impersonate any user or trigger automatic account creation, completely bypassing authentication. This vulnerability is fixed in 0.14.3.
References
- Webgithub.com/gogs/gogs/releases/tag/v0.14.3 ↗
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25119.json ↗
- Advisorygithub.com/gogs/gogs/security/advisories/GHSA-w6j9-vw59-27wv ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-25119 ↗
- Fixgithub.com/gogs/gogs/commit/0089c4c8e5b8d99eb6e5c8727f8f40d765f1f58a ↗
- Fixgithub.com/gogs/gogs/pull/8264 ↗