{"id":"CVE-2026-52798","published":"2026-06-24T20:14:13Z","modified":"2026-06-25T17:15:43Z","title":"Gogs: Stored XSS in `.ipynb` Preview","vendor":"gogs","product":"gogs","tier":"tail","description":{"text":"Gogs is an open source self-hosted Git service. Prior to 0.14.3, although .ipynb previews are sanitized on the server side via /-/api/sanitize_ipynb, the inserted content is re-rendered on the client side without sanitization using marked() on elements with the .nb-markdown-cell class. During this process, links containing schemes such as javascript: can be regenerated. As a result, when a victim views an attacker-crafted .ipynb file and clicks the link, arbitrary JavaScript is executed in the Gogs origin, leading to a click-based Stored XSS. This vulnerability is fixed in 0.14.3.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.9,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00429,"percentile":0.28903,"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-jq8v-rmf6-65jw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gogs/gogs/pull/8319","tags":["x_refsource_MISC"]},{"url":"https://github.com/gogs/gogs/commit/17b168b11ca759a7550e1f4bbd68bbde14db7785","tags":["x_refsource_MISC"]},{"url":"https://github.com/gogs/gogs/releases/tag/v0.14.3","tags":["x_refsource_MISC"]}],"priority":{"score":12.0,"factors":[{"name":"EPSS percentile","points":5.78},{"name":"CVSS severity","points":6.23}]},"vendorSlug":"gogs","affectedVersions":[{"vendor":"gogs","product":"gogs","versions":["< 0.14.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-06-25T17:14:47.335180Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"gogs.io/gogs","vulnerableRanges":["<0.14.3","all versions"],"patched":["0.14.3"],"from":["GHSA-jq8v-rmf6-65jw","GO-2026-5477"],"provenance":"source"}],"summary":{"text":"A stored cross-site scripting flaw in Gogs, the self-hosted Git service, affects the client-side rendering of .ipynb previews: content that the server sanitises is re-rendered in the browser with marked() without sanitisation, which can regenerate links using schemes such as javascript:. An attacker with low-privilege access who can get a victim to view a crafted .ipynb file and click a link can run arbitrary JavaScript in the Gogs origin, which requires user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:57Z"},"euvd":{"id":"EUVD-2026-39066","exploited":false,"provenance":"source"}}