CVE-2026-28737 Gitea 3D file viewer allows stored XSS through glTF extensionsRequired
Attackers can inject malicious scripts via glTF files in Gitea's 3D viewer, potentially compromising user sessions.
- 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-28737?
CVE-2026-28737 is a high-severity cross-site scripting vulnerability in Gitea Open Source Git Server, published on 3 Jul 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
Gitea versions from 1.25.0 before 1.26.0 allow stored cross-site scripting through the extensionsRequired field in glTF files rendered by the 3D file viewer.
Weakness: CWE-79
Which versions are affected by CVE-2026-28737?
3 open source packages ship an affected version, including code.gitea.io/gitea.
| Package | Affected | Fixed in |
|---|---|---|
code.gitea.io/gitea Go | From 1.25.0 | 1.26.0 |
code.gitea.io/gitea Go | From 1.25.0 | 1.26.0 |
code.gitea.io/gitea Go | From 1.25.0 | 1.26.0 |
How do I fix CVE-2026-28737?
Upgrade code.gitea.io/gitea to 1.26.0 or later.
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-28737 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-28737 exists.
Sources
Also known as GHSA-9cpj-qc93-vw8v, GO-2026-5286.