CVE-2026-26022 Gogs: Stored XSS via data URI in issue comments
MediumCVSS 5.4
EPSS 0.35%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
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.
Upgrade path
2 packages: 1 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| gogs.io/gogs(Go) | < 0.14.2; <= 0.14.1; All versions | 0.14.2 | Partially fixed |
| gogs | < 0.14.2; = < 0.14.2 | 0.14.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| gogs | = < 0.14.2 | No fix listed |
| gogs.io/gogs(Go) | < 0.14.2 | 0.14.2 |
| gogs.io/gogs(Go) | All versions | No fix listed |
| gogs.io/gogs(Go) | <= 0.14.1 | No fix listed |
| gogs | < 0.14.2 | 0.14.2 |
References
- https://github.com/gogs/gogs/security/advisories/GHSA-xrcr-gmf5-2r8j exploit vendor-advisory
- https://github.com/gogs/gogs/pull/8174 issue-tracking patch
- https://github.com/gogs/gogs/commit/441c64d7bd8893b2f4e48660a8be3a7472e14291 patch
- https://github.com/gogs/gogs/releases/tag/v0.14.2 release-notes
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com