CVE-2026-26195 Gogs: Stored XSS in branch and wiki views through author and committer names
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.
| Package | Affected | Fixed in |
|---|---|---|
gogs.io/gogs Go | All versions | None |
gogs.io/gogs Go | All versions to 0.13.3 | None |
gogs.io/gogs Go | All versions to 0.13.3 | None |
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.
Other vulnerabilities in gogs
Sources
Also known as GHSA-vgvf-m4fw-938j, GO-2026-4618.