Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-vgvf-m4fw-938j

Опубликовано: 05 мар. 2026
Источник: github
Github: Прошло ревью
CVSS4: 6.9

Описание

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:

  • 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.

Пакеты

Наименование

gogs.io/gogs

go
Затронутые версииВерсия исправления

<= 0.13.3

Отсутствует

EPSS

Процентиль: 9%
0.00189
Низкий

6.9 Medium

CVSS4

Дефекты

CWE-79

Связанные уязвимости

CVSS3: 6.1
nvd
5 месяцев назад

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.

CVSS3: 6.1
fstec
6 месяцев назад

Уязвимость функции safe() программного средства создания самоуправляемых Git-репозиториев Gogs, позволяющая нарушителю проводить межсайтовые сценарные атаки

EPSS

Процентиль: 9%
0.00189
Низкий

6.9 Medium

CVSS4

Дефекты

CWE-79