# CVE-2026-52816: Gogs: Unauthenticated Jupyter Notebook (ipynb) Sanitizer allows arbitrary data: URIs leading to XSS

- Severity: Medium 5.4 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N/E:P`
- 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.47%, higher than 42% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-23T17:33:32.000Z
- Modified: 2026-07-21T13:30:31.797Z
- Also known as: GHSA-3w28-36p9-w929, GO-2026-5103
- Weaknesses: CWE-79, CWE-80
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Gogs is an open source self-hosted Git service. Prior to 0.14.3, the Jupyter Notebook (ipynb) sanitizer endpoint at POST /-/api/sanitize_ipynb allows arbitrary data: URIs without proper restrictions, potentially leading to Cross-Site Scripting (XSS). The endpoint uses bluemonday.UGCPolicy() with p.AllowURLSchemes("data") which permits all data URI schemes including data:text/html, enabling attackers to inject malicious HTML/JavaScript. Additionally, the endpoint has no authentication middleware, allowing any registered user to exploit this vulnerability. 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:4.0 5.4 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N/E:P`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N/E:P`

## References

- <https://github.com/gogs/gogs/security/advisories/GHSA-3w28-36p9-w929> (exploit, advisory, web)
- <https://github.com/gogs/gogs/pull/8326> (web)
- <https://github.com/gogs/gogs/commit/dd1bd9837aa196b3ed3a8ee21e5727b5d7a986a3> (web)
- <https://github.com/gogs/gogs/releases/tag/v0.14.3> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-52816> (advisory)
- <https://github.com/gogs/gogs> (package)

## Sources

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

---

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