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.
CVE-2026-52798
This high-severity CVE scores 8.9 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.4%, top 65% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 8.9
- EG Score
- 8.9(medium)
- EPSS
- 34.6%
- KEV
- Not listed
Published
June 22, 2026
Last Modified
June 25, 2026
Advisory Details (4)
Auto-updated Jun 24, 2026Stored XSS in `.ipynb` Preview · Advisory · gogs/gogs · GitHub
https://github.com/gogs/gogs/security/advisories/GHSA-jq8v-rmf6-65jw0.14.3
Patch available: gogs/gogs v0.14.3
https://github.com/gogs/gogs/releases/tag/v0.14.3security: upgrade marked.js to 4.3.0
Fix merged in gogs/gogs PR #8319 on 2026-06-04 — awaiting tagged release
https://github.com/gogs/gogs/pull/8319commit 17b168b11ca7 (gogs/gogs)
Fix landed in gogs/gogs commit 17b168b11ca7 — awaiting tagged release
https://github.com/gogs/gogs/commit/17b168b11ca759a7550e1f4bbd68bbde14db7785Vendor Advisories for CVE-2026-52798(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Affected Packages
(1 across 1 ecosystem)
Go(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| gogs.io/gogs | — | 0.14.3 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 21× in last 7d / 43× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-07 04:02 UTCEG score recompute
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 15:40 UTCEG score recompute
- 2026-07-06 03:32 UTCEG score recompute
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-05 15:18 UTCEG score recompute
- 2026-07-05 03:12 UTCEG score recompute
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 15:06 UTCEG score recompute
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-04 03:01 UTCEG score recompute
- 2026-07-03 14:42 UTCEG score recompute
- 2026-07-03 02:35 UTCEG score recompute
- 2026-07-02 14:30 UTCEG score recompute
- 2026-07-02 02:23 UTCEG score recompute
- 2026-07-01 15:07 UTCEPSS rescore
- 2026-07-01 14:16 UTCEG score recompute
- 2026-07-01 02:10 UTCEG score recompute
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-30 14:05 UTCEG score recompute
- 2026-06-30 01:58 UTCEG score recompute
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-29 13:53 UTCEG score recompute
Show 18 moreShow fewer
- 2026-06-29 01:47 UTCEG score recompute
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 13:41 UTCEG score recompute
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-28 01:36 UTCEG score recompute
- 2026-06-27 13:30 UTCEG score recompute
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-27 01:24 UTCEG score recompute
- 2026-06-26 13:18 UTCEG score recompute
- 2026-06-26 01:12 UTCEG score recompute
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-25 13:05 UTCEG score recompute
- 2026-06-25 00:59 UTCEG score recompute
- 2026-06-24 12:53 UTCEG score recompute
- 2026-06-24 00:43 UTCEG score recompute
- 2026-06-23 12:37 UTCEG score recompute
- 2026-06-23 00:30 UTCEG score recompute
Related CVEs(same CWE)
Frequently asked(5)
What is CVE-2026-52798?
When was CVE-2026-52798 disclosed?
Is CVE-2026-52798 actively exploited?
What is the CVSS score of CVE-2026-52798?
How do I remediate CVE-2026-52798?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-52798
Is Your Infrastructure Affected by CVE-2026-52798?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.