Loading advisory.
Loading advisory.
Gogs: Stored XSS in branch and wiki views through author and committer names
Stored XSS is still possible through unsafe template rendering that mixes user input with safe() plus permissive sanitizer handling of data URLs.
Published 2026-03-05 18:40 UTC · Modified 2026-03-23 04:56 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| gogs.io/gogs | Go | <= 0.13.3 all versions | No patch yet | No command until a fix exists. |
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
The locale still injects a raw second argument: conf/locale/locale_en-US.ini (branches.updated_by = updated %[1]s by %[2]s)
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.
Untrusted arguments should be escaped before being used in translations.
Data URLs should be limited or blocked in the sanitizer.
A fix is available at https://github.com/gogs/gogs/releases/tag/v0.14.2.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.002 on 2026-11-24 to 0.004 on 2026-11-30, over 3 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.002 | first score | v2026.06.15 |
| 2026-11-26 | 0.004 | 0.002 | v2026.06.15 |
| 2026-11-30 | 0.004 | 0.004 | v2026.06.15 |