# CVE-2026-52798: Gogs: Stored XSS in `.ipynb` Preview

- Severity: High 8.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-22T23:58:46.000Z
- Modified: 2026-07-21T13:30:31.803Z
- Also known as: GHSA-jq8v-rmf6-65jw, GO-2026-5477
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- gogs gogs: < 0.14.3
- gogs.io/gogs (Go): before 0.14.3; all versions

## Every score

- GitHub_M: CVSS:3.1 8.9 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L`
- GitHub: CVSS:3.1 8.9 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L`

## References

- <https://github.com/gogs/gogs/security/advisories/GHSA-jq8v-rmf6-65jw> (exploit, advisory, web)
- <https://github.com/gogs/gogs/pull/8319> (web)
- <https://github.com/gogs/gogs/commit/17b168b11ca759a7550e1f4bbd68bbde14db7785> (web)
- <https://github.com/gogs/gogs/releases/tag/v0.14.3> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-52798> (advisory)
- <https://github.com/gogs/gogs> (package)

## Sources

- CVE List: [CVE-2026-52798](https://www.cve.org/CVERecord?id=CVE-2026-52798), CVE Terms of Use, modified 2026-06-25
- GitHub Advisory Database: [GHSA-jq8v-rmf6-65jw](https://github.com/advisories/GHSA-jq8v-rmf6-65jw), CC-BY-4.0, modified 2026-07-21
- Go Vulnerability Database: [GO-2026-5477](https://pkg.go.dev/vuln/GO-2026-5477), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-52798](https://nvd.nist.gov/vuln/detail/CVE-2026-52798), Public domain, modified 2026-06-25

---

Page: https://cve.day/CVE-2026-52798 · Whole record: https://cve.day/CVE-2026-52798.json · Rebuilt by cve.day 2026-11-25T22:59:25.742Z
