gogs.io/gogs
Affected
- introduced
0, last affected0.13.3(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: CVE-2026-26195, GO-2026-4618
Gogs: Stored XSS in branch and wiki views through author and committer names
Summary
Stored XSS is still possible through unsafe template rendering that mixes user input with safe() plus permissive sanitizer handling of data URLs.
Details
safe() still turns off escaping:
func safe(raw string) template.HTML { return template.HTML(raw) }Branch pages still render committer names using safe():
The locale still injects a raw second argument: conf/locale/locale_en-US.ini (branches.updated_by = updated %[1]s by %[2]s)
Impact
An attacker who can inject commit metadata such as author/committer name can trigger script execution on affected pages, leading to session abuse, CSRF token theft, or unauthorized actions.
Recommended Fix
Remediation
A fix is available at https://github.com/gogs/gogs/releases/tag/v0.14.2.
Medium Basis: The source's own band: MODERATE
0, last affected 0.13.3 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0