CVE-2026-26276

Gogs: DOM-based XSS via milestone selection

Published Mar 5, 2026 CVSS 3.1 · 7.3 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A DOM‑based XSS flaw in Gogs allows an attacker to embed an HTML or JavaScript payload into the title of a repository milestone. When another user selects that milestone on the New Issue page, the payload is injected into the page’s DOM and executes in the victim’s browser. The weakness is a classic unvalidated stored input reflected unsanitized content, identified as CWE‑79. The impact is that any authenticated or publicly accessible user who views the milestone can have arbitrary JavaScript run in their browser session, potentially leading to session hijacking, credential theft, or point‑of‑interest defacement.

Affected Systems

Gogs, versions older than 0.14.2. The issue was fixed in v0.14.2, so any deployment using v0.14.1 or earlier is affected.

Risk and Exploitability

The CVSS score of 7.3 places this vulnerability in the high‑severity range, though the EPSS score of less than 1% indicates a low probability of exploitation currently. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector requires an attacker to create a milestone with malicious content in a repository they can modify, after which any user who selects that milestone on the issue creation page is exposed to the injected JavaScript. Because the flaw requires only repository modification privileges, an internal user or an attacker who gains write access to the repository can trigger it. Despite the low exploitation probability, the potential for damaging session compromise warrants immediate remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gogs to version 0.14.2 or later, which removes the vulnerable code.
  • If an upgrade is not feasible, audit all milestone titles for disallowed characters and remove or replace any payloads containing <, >, or script tags.
  • Restrict milestone creation to users with admin or write permissions, and enforce an input whitelist that rejects HTML or script content.

Generated by OpenCVE AI on April 16, 2026 at 12:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-vgjm-2cpf-4g7c Gogs: DOM-based XSS via milestone selection
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Gogs
Gogs gogs
CPEs cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*
Vendors & Products Gogs
Gogs gogs
Type Values Removed Values Added
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.
Title Gogs: DOM-based XSS via milestone selection
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 7, 2026, 4:55 AM
Reserved
Feb 12, 2026, 5:10 PM
Status
Analyzed
Published
Mar 5, 2026, 7:16 PM
Modified
Jun 17, 2026, 10:26 AM