CVE-2026-26022 json
Gogs: Stored XSS via data URI in issue comments
published 2026-03-05 8 mo ago modified 2026-06-17 4 mo ago also EUVD-2026-9851 , GHSA-xrcr-gmf5-2r8j , GO-2026-4620
- cvss
- 8.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 29%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go gogs.io/gogs 0.14.2
- gogs gogs 0.14.2
- govulncheck-vulndb openSUSE Leap 15.6 0.0.20260317T205859-150000.1.152.1
suse advisories SUSE-SU-2026:1042-1
- govulncheck-vulndb openSUSE Leap 16.0 0.0.20260723T184607-160000.1.1
opensuse advisories openSUSE-SU-2026:21483-1
- github.com/gogs/gogs@441c64d commit
- github.com/gogs/gogs#8174 pull request
- github.com/gogs/gogs/releases/tag/v0.14.2 release
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 8 mo ago
Exploit prediction
0.35% chance of exploitation in the next 30 days, higher than 29% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/gogs/gogs/security/advisories/GHSA-xrcr-gmf5-2r8j referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
| GitHub | 3.1 | 8.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
| NVD | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | gogs.io/gogs | <0.14.2 all versions |
0.14.2 |
Affected products
- gogs gogs
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/gogs/gogs/pull/8174
web, issue-tracking
-
github.com
/gogs/gogs/commit/441c64d7bd8893b2f4e48660a8be3a7472e14291
web, patch
-
github.com
/gogs/gogs/security/advisories/GHSA-xrcr-gmf5-2r8j
web, exploit, vendor-advisory, advisory
-
github.com
/gogs/gogs/releases/tag/v0.14.2
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2026-26022
advisory
-
github.com
/gogs/gogs
package
Sources
- CVE List CVE-2026-26022
- GitHub Advisory GHSA-xrcr-gmf5-2r8j
- NVD CVE-2026-26022
- OSV GO-2026-4620
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.