Vulnerability advisory
CVE-2026-26022
Gogs: Stored XSS via data URI in issue comments
Also known as GHSA-xrcr-gmf5-2r8jGO-2026-4620
Severity
- CVSS 3.x
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/gogs/gogs ↗ | |
| All commits before 5dcb6c64bdf61e38dbdbb941c1d69789c560d0fb | 5dcb6c64bdf61e38dbdbb941c1d69789c560d0fb |
| Not specified | 441c64d7bd8893b2f4e48660a8be3a7472e14291 |
Also listed as affected (58)
| |
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.
References
- Webgithub.com/gogs/gogs/releases/tag/v0.14.2 ↗
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2026/26xxx/CVE-2026-26022.json ↗
- Advisorygithub.com/gogs/gogs/security/advisories/GHSA-xrcr-gmf5-2r8j ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-26022 ↗
- Fixgithub.com/gogs/gogs/commit/441c64d7bd8893b2f4e48660a8be3a7472e14291 ↗
- Fixgithub.com/gogs/gogs/pull/8174 ↗