{"id":"CVE-2026-26195","aliases":["GHSA-vgvf-m4fw-938j","GO-2026-4618"],"url":"https://o3.security/vulnerability/CVE-2026-26195","summary":"Gogs: Stored XSS in branch and wiki views through author and committer names","details":"### Summary\n\nStored XSS is still possible through unsafe template rendering that mixes user input with `safe()` plus permissive sanitizer handling of data URLs.\n\n### Details\n\n`safe()` still turns off escaping:\n- internal/template/template.go\n- `func safe(raw string) template.HTML { return template.HTML(raw) }`\n\nBranch pages still render committer names using `safe()`:\n- templates/repo/branches/overview.tmpl\n- templates/repo/branches/all.tmpl\n- templates/repo/wiki/view.tmpl\n\nThe locale still injects a raw second argument: conf/locale/locale_en-US.ini (`branches.updated_by = updated %[1]s by %[2]s`)\n\n### Impact\n\nAn 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.\n\n### Recommended Fix\n\n- Untrusted arguments should be escaped before being used in translations.\n- Data URLs should be limited or blocked in the sanitizer.\n\n### Remediation\nA fix is available at https://github.com/gogs/gogs/releases/tag/v0.14.2.","published":"2026-03-05T18:40:31.249Z","modified":"2026-08-12T03:51:42.666207477Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"gogs.io/gogs","fixedVersion":null}],"fix":{"url":"https://github.com/gogs/gogs/commit/ac21150a53bef3a3061f4da787ab193a8d68ecfc","label":"gogs/gogs@ac21150"},"references":[{"type":"WEB","url":"https://github.com/gogs/gogs/releases/tag/v0.14.2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/26xxx/CVE-2026-26195.json"},{"type":"ADVISORY","url":"https://github.com/gogs/gogs/security/advisories/GHSA-vgvf-m4fw-938j"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-26195"},{"type":"FIX","url":"https://github.com/gogs/gogs/commit/ac21150a53bef3a3061f4da787ab193a8d68ecfc"},{"type":"FIX","url":"https://github.com/gogs/gogs/pull/8176"},{"type":"PACKAGE","url":"https://github.com/gogs/gogs"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:42.666207477Z"}}