CVE-2026-26195
mediumpriority · track · 24EPSS 0.002 · 10 %ileDEEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–medium · 2.7–6.9
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (7)
Products and version ranges known to be affected.
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2026-0623Gogs: Mehrere SchwachstellenDeutsch2026-03-05csaf · cert_bundDE
Ein Angreifer kann mehrere Schwachstellen in Gogs ausnutzen, um Daten zu manipulieren, Cross-Site-Scripting-Angriffe durchzuführen oder vertrauliche Informationen offenzulegen.
- GHSA-vgvf-m4fw-938jGogs: Stored XSS in branch and wiki views through author and committer names2026-03-05ghsa · osvUS
### 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: - 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 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 - Untrusted arguments should be escaped before being used in translations. - Data URLs should be limited or blocked in the sanitizer. ### Remediation A fix is available at https://github.com/gogs/gogs/releases/tag/v0.14.2.
- GO-2026-4618Gogs: Stored XSS in branch and wiki views through author and committer names in gogs.io/gogs2026-03-10vendor · osvUS
Gogs: Stored XSS in branch and wiki views through author and committer names in gogs.io/gogs
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (13)
External citations — patches, advisories, analysis.
- https://github.com/gogs/gogs/commit/ac21150a53bef3a3061f4da787ab193a8d68ecfccnnvd
- https://github.com/gogs/gogs/pull/8176cnnvd
- https://github.com/gogs/gogs/releasesPatchcnnvd
- https://github.com/gogs/gogs/releases/tag/v0.14.2cnnvd
- https://github.com/gogs/gogs/security/advisories/GHSA-vgvf-m4fw-938jcnnvd
- https://github.com/gogs/gogs/commit/ac21150a53bef3a3061f4da787ab193a8d68ecfcenisa_euvd
- https://github.com/gogs/gogs/pull/8176enisa_euvd
- https://github.com/gogs/gogs/releases/tag/v0.14.2enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan