CVE-2026-25119 Gogs: Authentication Bypass via Unvalidated Reverse Proxy Headers

High 7.7 Published Updated

Attackers can bypass authentication and impersonate users by forging headers when reverse proxy authentication is enabled.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-25119?

CVE-2026-25119 is a high-severity authentication bypass vulnerability in gogs, published on 24 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-290

Which versions are affected by CVE-2026-25119?

3 open source packages ship an affected version, including gogs.io/gogs.

PackageAffectedFixed in
gogs.io/gogs GoAll versionsNone
gogs.io/gogs GoAll versions0.14.3
gogs.io/gogs GoAll versions0.14.3

How do I fix CVE-2026-25119?

Upgrade gogs.io/gogs to 0.14.3 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2026-25119 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-25119 exists.

Sources

Also known as GHSA-w6j9-vw59-27wv, GO-2026-5695.

Is CVE-2026-25119 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free