Medium severity · published Mar 5, 2026
CVE-2026-26022
Gogs: Stored XSS via data URI in issue comments
5.4
CVSS
0.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 25% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
GO
gogs · gogs
< 0.14.2 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-26022
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-26022
Patch
https://github.com/gogs/gogs/commit/441c64d7bd8893b2f4e48660a8be3a7472e14291
Issue Tracking
https://github.com/gogs/gogs/pull/8174
Release Notes
https://github.com/gogs/gogs/releases/tag/v0.14.2
Exploit
https://github.com/gogs/gogs/security/advisories/GHSA-xrcr-gmf5-2r8j
More from gogs
8.8
CVE-2025-8110
File overwrite in file update API in Gogs
10.0
CVE-2026-52813
Gogs: Path Traversal in organization name results in RCE through Git hooks
9.9
CVE-2026-52806
Gogs: RCE via git rebase --exec argument injection in pull request merge
9.9
CVE-2024-39932
Gogs through 0.13.0 allows argument injection during the previewing of changes
9.9
CVE-2024-39931
Gogs through 0.13.0 allows deletion of internal files
