CVE-2026-26195 Gogs: Stored XSS in branch and wiki views through author and committer names

Medium 6.9 Published Updated

Attackers can inject malicious scripts via author names in Gogs Git service, potentially leading to session hijacking or code execution.

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-26195?

CVE-2026-26195 is a medium-severity cross-site scripting vulnerability in gogs, published on 5 Mar 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 version 0.14.2, stored xss is still possible through unsafe template rendering that mixes user input with safe plus permissive sanitizer handling of data urls. This issue has been patched in version 0.14.2.

Weakness: CWE-79

Which versions are affected by CVE-2026-26195?

3 open source packages ship an affected version, including gogs.io/gogs. It affects 1 product.

PackageAffectedFixed in
gogs.io/gogs GoAll versionsNone
gogs.io/gogs GoAll versions to 0.13.3None
gogs.io/gogs GoAll versions to 0.13.3None

Products include Gogs Gogs.

How do I fix CVE-2026-26195?

Upgrade to a fixed version.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-26195 being exploited?

There is no known exploitation of CVE-2026-26195 in the wild and no public exploit code.

Sources

Also known as GHSA-vgvf-m4fw-938j, GO-2026-4618.

Is CVE-2026-26195 in your software?

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

Check your SBOMs for free