All vulnerabilities

Servers and applications

CVE-2026-26195

Stored XSS in branch and wiki views through author and committer names

Severity
Medium 6.9
Published
5 Mar 2026
Last changed
17 Jun 2026
Added to UpHeron
1 Nov 2026
Fixed in
0.14.2
Exploit chance
0.2% in the next 30 daysHigher than 13% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · No login needed · No user action needed
Attacker can
Change some data
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Also known as
GHSA-vgvf-m4fw-938j
Sources
NVD, Project advisories (GitHub)

Description

stored xss is still possible through unsafe template rendering that mixes user input with safe plus permissive sanitizer handling of data urls,

safe() still turns off escaping

  • internal/template/template.go
  • func safe(raw string) template.html { return template.html(raw) }

branch pages still render committer names using safe()

  • templates/repo/branches/overview.tmpl
  • templates/repo/branches/all.tmpl
  • templates/repo/wiki/view.tmpl

locale still injects raw second arg: conf/locale/locale_en-us.ini (branches.updated_by = updated %[1]s by %[2]s)

an attacker who can inject commit metadata like author/committer name can trigger script execution on affected pages, leading to session abuse, csrf token theft, or unauthorized actions

From gogs/gogs's security advisory.

Affected software

SoftwareAffected versions
GogsServers and applications · cpe:a:gogs:gogs
  • Every version before 0.14.2
GogsServers and applications · github:gogs/gogs
  • Every version up to 0.14.1

About Gogs

free forge based on Git written in Go

From Wikidata, CC0 1.0.
Docker Hub pulls
94,040,857Docker Hub, 15 Nov 2026
GitHub stars
47,939GitHub, 15 Nov 2026
Forks
5,082GitHub, 15 Nov 2026
Latest release
v0.14.4GitHub, 15 Nov 2026
Released
12 Nov 2026GitHub
Developer
FLOSS contributorWikidata
License
Expat licenseWikidata
Written in
Go, Cascading Style Sheets, JavaScriptWikidata
First released
11 Feb 2014Wikidata
First published on GitHub
12 Feb 2014GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-26195
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-26195
  • GitHub Advisory Database https://github.com/advisories/GHSA-vgvf-m4fw-938j
  • github.com https://github.com/gogs/gogs/security/advisories/GHSA-vgvf-m4fw-938j