# CVE-2026-26022: Gogs: Stored XSS via data URI in issue comments

- Severity: High 8.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 39% of CVEs (2026-11-29)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-05T18:34:12.843Z
- Modified: 2026-06-17T10:25:36.953Z
- Also known as: GHSA-xrcr-gmf5-2r8j, GO-2026-4620
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gogs gogs: < 0.14.2; before 0.14.2
- gogs.io/gogs (Go): before 0.14.2; all versions

## Every score

- GitHub_M: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/gogs/gogs/security/advisories/GHSA-xrcr-gmf5-2r8j> (exploit, advisory, vendor-advisory, web)
- <https://github.com/gogs/gogs/pull/8174> (issue-tracking, web)
- <https://github.com/gogs/gogs/commit/441c64d7bd8893b2f4e48660a8be3a7472e14291> (patch, web)
- <https://github.com/gogs/gogs/releases/tag/v0.14.2> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-26022> (advisory)
- <https://github.com/gogs/gogs> (package)

## Sources

- CVE List: [CVE-2026-26022](https://www.cve.org/CVERecord?id=CVE-2026-26022), CVE Terms of Use, modified 2026-03-10
- GitHub Advisory Database: [GHSA-xrcr-gmf5-2r8j](https://github.com/advisories/GHSA-xrcr-gmf5-2r8j), CC-BY-4.0, modified 2026-03-23
- Go Vulnerability Database: [GO-2026-4620](https://pkg.go.dev/vuln/GO-2026-4620), CC-BY-4.0, modified 2026-03-23
- NVD: [CVE-2026-26022](https://nvd.nist.gov/vuln/detail/CVE-2026-26022), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-26022 · Whole record: https://cve.day/CVE-2026-26022.json · Rebuilt by cve.day 2026-11-25T22:59:15.321Z
