7.3high
Gogs: DOM-based XSS via milestone selection
- Severity
- 7.3high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.22% (higher than 13% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-vgjm-2cpf-4g7cGO-2026-4627
Description
Gogs is an open source self-hosted Git service. Prior to version 0.14.2, an attacker can store an HTML/JavaScript payload in a repository’s Milestone name, and when another user selects that Milestone on the New Issue page (/issues/new), a DOM-Based XSS is triggered. This issue has been patched in version 0.14.2.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| gogs gogs | < 0.14.2, before 0.14.2 | CVE List, NVD |
| gogs.io/gogs (Go) | up to 0.13.3, all versions | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
| GitHub | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
Gogs is an open source self-hosted Git service. Prior to version 0.14.2, an attacker can store an HTML/JavaScript payload in a repository’s Milestone name, and when another user selects that Milestone on the New Issue page (/issues/new), a DOM-Based XSS is triggered. This issue has been patched in version 0.14.2.
GitHub Advisory Database
Summary
It was confirmed in a test environment that an attacker can store an HTML/JavaScript payload in a repository’s Milestone name, and when another user selects that Milestone on the New Issue page (/issues/new), a DOM-Based XSS is triggered.
Impact
- Theft of information accessible in the victim’s session.
- Extraction of CSRF tokens and submission of state-changing requests with the victim’s privileges.
- Repository operations performed with the victim’s privileges (Issue operations, settings changes, etc.).
(The impact scope depends on the victim’s permission level.)
Remediation
A fix is available at https://github.com/gogs/gogs/releases/tag/v0.14.2
Go Vulnerability Database
Gogs: DOM-based XSS via milestone selection in gogs.io/gogs
NVD (es)
Gogs es un servicio Git autoalojado de código abierto. Antes de la versión 0.14.2, un atacante puede almacenar una carga útil HTML/JavaScript en el nombre de un Hito de repositorio, y cuando otro usuario selecciona ese Hito en la página de Nueva Incidencia (/issues/new), se activa un XSS basado en DOM. Este problema ha sido parcheado en la versión 0.14.2.
References
| https://github.com/gogs/gogs/security/advisories/GHSA-vgjm-2cpf-4g7c | advisory, vendor-advisory, web | |
| https://github.com/gogs/gogs/pull/8178 | issue-tracking, web | |
| https://github.com/gogs/gogs/releases/tag/v0.14.2 | release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-26276 | advisory | |
| https://github.com/gogs/gogs/commit/9001a68cdda7bd9c078ffd6d1c4622905ac11e5c | web | |
| https://github.com/gogs/gogs | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-26276 changed 2026-03-07 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vgjm-2cpf-4g7c changed 2026-03-23 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-4627 changed 2026-03-23 | CC-BY-4.0 |
| NVD | CVE-2026-26276 changed 2026-06-17 | Public domain |