Vulnerability · Published Jun 24, 2026 · Assigned by GitHub_M
CVE-2026-25119Gogs: Authentication Bypass via Unvalidated Reverse Proxy Headers
High 7.7
In plain English
A high-severity authentication bypass by spoofing in gogs from gogs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | gogs.io/gogs | 0.14.3 | GHSA-w6j9-vw59-27wv |
| Go | gogs.io/gogs | no fix listed | GO-2026-5695 |
Affected products (as reported)
Weakness: CWE-290 · Vector: 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
References
- https://github.com/gogs/gogs/security/advisories/GHSA-w6j9-vw59-27wv x_refsource_CONFIRM
- https://github.com/gogs/gogs/pull/8264 x_refsource_MISC
- https://github.com/gogs/gogs/commit/0089c4c8e5b8d99eb6e5c8727f8f40d765f1f58a x_refsource_MISC
- https://github.com/gogs/gogs/releases/tag/v0.14.3 x_refsource_MISC