Skip to content
OpenAdvisories
High · 8.7 CVE-2026-26022 EUVD-2026-9851GHSA-xrcr-gmf5-2r8jGO-2026-4620

Gogs: Stored XSS via data URI in issue comments

Published Mar 5, 2026 · Updated Mar 10, 2026 · Assigned by GitHub_M

Description

Gogs is an open source self-hosted Git service. Prior to version 0.14.2, a stored cross-site scripting (XSS) vulnerability exists in the comment and issue description functionality. The application's HTML sanitizer explicitly allows data: URI schemes, enabling authenticated users to inject arbitrary JavaScript execution via malicious links. This issue has been patched in version 0.14.2.

Affected products

VendorProductAffectedFixed
gogs gogs < 0.14.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1
openSUSE Leap 15.6 govulncheck-vulndb 0.0.20260317T205859-150000.1.152.1 SUSE-SU-2026:1042-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go gogs.io/gogs < 0.14.2 0.14.2 GHSA-xrcr-gmf5-2r8j
Go gogs.io/gogs all versions — GO-2026-4620

Advisories 3

References