{"id":"CVE-2026-52807","published":"2026-06-24T20:25:49Z","modified":"2026-06-25T15:37:35Z","title":"Gogs: DOM-based XSS via Milestone Name on New Issue Page","vendor":"gogs","product":"gogs","tier":"tail","description":{"text":"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 &lt; 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00483,"percentile":0.42556,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-vcm5-gvmp-78mp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gogs/gogs/pull/8325","tags":["x_refsource_MISC"]},{"url":"https://github.com/gogs/gogs/commit/573eacdc658641487f8ad883da96b29ec8e2852d","tags":["x_refsource_MISC"]},{"url":"https://github.com/gogs/gogs/releases/tag/v0.14.3","tags":["x_refsource_MISC"]}],"priority":{"score":11.9,"factors":[{"name":"EPSS percentile","points":8.51},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"gogs","affectedVersions":[{"vendor":"gogs","product":"gogs","versions":["< 0.14.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-25T15:37:32.952801Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"gogs.io/gogs","vulnerableRanges":["<0.14.3","all versions"],"patched":["0.14.3"],"from":["GHSA-vcm5-gvmp-78mp","GO-2026-5661"],"provenance":"source"}],"summary":{"text":"Gogs (the open source self-hosted Git service) has a DOM-based cross-site scripting flaw in the milestone dropdown on the New Issue page, where milestone names are decoded and re-parsed as HTML by Semantic UI's dropdown component. An attacker who can create a milestone name containing a script payload can have it execute in the browser of a user who opens the New Issue page and selects that milestone, which requires the attacker to be authenticated and the victim to interact with the dropdown.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:56:42Z"},"euvd":{"id":"EUVD-2026-39075","exploited":false,"provenance":"source"}}