CVE-2026-26276 Gogs: DOM-based XSS via milestone selection

High 7.3 Published Updated

An attacker can execute arbitrary JavaScript in a victim's browser by storing a malicious payload in a repository milestone name, potentially leading to account takeover.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-26276?

CVE-2026-26276 is a high-severity cross-site scripting vulnerability in gogs, published on 5 Mar 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

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

Weakness: CWE-79

Which versions are affected by CVE-2026-26276?

3 open source packages ship an affected version, including gogs.io/gogs. It affects 1 product.

PackageAffectedFixed in
gogs.io/gogs GoAll versionsNone
gogs.io/gogs GoAll versions to 0.13.3None
gogs.io/gogs GoAll versions to 0.13.3None

Products include Gogs Gogs.

How do I fix CVE-2026-26276?

Upgrade to a fixed version.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-26276 being exploited?

There is no known exploitation of CVE-2026-26276 in the wild and no public exploit code.

Sources

Also known as GHSA-vgjm-2cpf-4g7c, GO-2026-4627.

Is CVE-2026-26276 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free