{"id":"CVE-2026-52798","aliases":["GHSA-jq8v-rmf6-65jw","GO-2026-5477"],"url":"https://o3.security/vulnerability/CVE-2026-52798","summary":"Gogs: Stored XSS in `.ipynb` Preview","details":"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.","published":"2026-06-24T20:14:13.965Z","modified":"2026-08-12T03:51:38.798457763Z","cvss":{"score":8.9,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L"},"epss":{"score":0.00296,"percentile":0.22054,"asOf":"2026-08-12"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"gogs.io/gogs","fixedVersion":"0.14.3"}],"fix":{"url":"https://github.com/gogs/gogs/commit/17b168b11ca759a7550e1f4bbd68bbde14db7785","label":"gogs/gogs@17b168b"},"references":[{"type":"WEB","url":"https://github.com/gogs/gogs/releases/tag/v0.14.3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52798.json"},{"type":"ADVISORY","url":"https://github.com/gogs/gogs/security/advisories/GHSA-jq8v-rmf6-65jw"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-52798"},{"type":"FIX","url":"https://github.com/gogs/gogs/commit/17b168b11ca759a7550e1f4bbd68bbde14db7785"},{"type":"FIX","url":"https://github.com/gogs/gogs/pull/8319"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:38.798457763Z"}}