Advisory

GHSA-vgjm-2cpf-4g7c

Also known as: CVE-2026-26276, GO-2026-4627

Summary

Gogs: DOM-based XSS via milestone selection

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-03-05 20:16 UTC
Modified
2026-03-23 04:56 UTC

Affected packages and fixes

gogs.io/gogs

Go · All systems

Affected

  • introduced 0, last affected 0.13.3 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences