CVE-2026-26022Published Mar 5, 2026 · Mar 5Updated Oct 28
Gogs: Stored XSS via data URI in issue comments
gogs
High8.7Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| gogs.io/gogs Go |
|
|
Original 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.
From the CVE record · GitHub_M
References
- github.com/gogs/gogs/security/advisories/GHSA-xrcr-gmf5-2r8jVendor advisory
- github.com/gogs/gogs/pull/8174Issue tracker
- github.com/gogs/gogs/commit/441c64d7bd8893b2f4e48660a8be3a7472e14291Patch
- github.com/gogs/gogs/releases/tag/v0.14.2Release notes
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/26xxx/CVE-2026-26022.json
- nvd.nist.gov/vuln/detail/CVE-2026-26022
- github.com/gogs/gogs