Vulnerability · Published Mar 5, 2026 · Assigned by GitHub_M
CVE-2026-26022Gogs: Stored XSS via data URI in issue comments
High 8.7
In plain English
A high-severity cross-site scripting in gogs from gogs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 29% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | gogs.io/gogs | 0.14.2 | GHSA-xrcr-gmf5-2r8j |
| Go | gogs.io/gogs | no fix listed | GO-2026-4620 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
References
- https://github.com/gogs/gogs/security/advisories/GHSA-xrcr-gmf5-2r8j x_refsource_CONFIRM
- https://github.com/gogs/gogs/pull/8174 x_refsource_MISC
- https://github.com/gogs/gogs/commit/441c64d7bd8893b2f4e48660a8be3a7472e14291 x_refsource_MISC
- https://github.com/gogs/gogs/releases/tag/v0.14.2 x_refsource_MISC