CVE-2026-52807
Last modified
CVE-2026-52807 is a medium-severity vulnerability rated 4.8/10 on the CVSS scale. Gogs is an open source self-hosted Git service. Prior to 0.14.3, in new_form.tmpl, milestone names are rendered with Go's default auto-escaping ({{.Name}}), which converts < to < etc. EPSS estimates a 0.48% chance of exploitation in the next 30 days.
Description
Gogs is an open source self-hosted Git service. Prior to 0.14.3, in new_form.tmpl, milestone names are rendered with Go's default auto-escaping ({{.Name}}), which converts < to < etc. This prevents direct HTML injection. However, when the browser renders the DOM, the text content of the element contains the decoded original payload. Semantic UI 2.4.2's dropdown component has preserveHTML: true as the default setting. When a user selects a dropdown item, the internal set.text() method calls jQuery's .html() with the item's text content. This re-parses the decoded text as HTML, creating the injected element and triggering the JavaScript event handler. An attacker can store an HTML/JavaScript payload in a milestone name, and when any user opens the New Issue page and interacts with the milestone dropdown, the payload executes in their browser via Semantic UI's preserveHTML behavior. This vulnerability is fixed in 0.14.3.
Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-52807?
How severe is CVE-2026-52807?
How do I fix CVE-2026-52807?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-52800Gogs is an open source self-hosted Git service. Prior to 0.1…8.8
- CVE-2026-52801Gogs is an open source self-hosted Git service. Prior to 0.1…8.1
- CVE-2026-52802Gogs is an open source self-hosted Git service. Prior to 0.1…5.4
- CVE-2026-52804Gogs is an open source self-hosted Git service. Prior to 0.1…5.5
- CVE-2026-52805Gogs is an open source self-hosted Git service. Prior to 0.1…8.7
- CVE-2026-52806Gogs is an open source self-hosted Git service. Prior to 0.1…9.9
- CVE-2026-52808Gogs is an open source self-hosted Git service. Prior to 0.1…7.1
- CVE-2026-52809Gogs is an open source self-hosted Git service. Prior to 0.1…6.8
- CVE-2026-5281Use after free in Dawn in Google Chrome prior to 146.0.7680.…8.8
- CVE-2026-52810Gogs is an open source self-hosted Git service. Prior to 0.1…7.1
- CVE-2026-52811Gogs is an open source self-hosted Git service. Prior to 0.1…9
- CVE-2026-52812Gogs is an open source self-hosted Git service. Prior to 0.1…7.1
Are you affected by CVE-2026-52807?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
