Gogs
Gogs: Stored XSS in `.ipynb` Preview
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.9high · scored by CNA · CWE-79
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
gogs gogs
- < 0.14.3
Fixed in 0.14.3
Mitigation
Upgrade gogs to 0.14.3 or later.
References
- Vendor advisory github.com/gogs/gogs/security/advisories/GHSA-…
- Patch github.com/gogs/gogs/pull/8319
- Patch github.com/gogs/gogs/commit/17b168b11ca759a755…
1 more
- Release notes github.com/gogs/gogs/releases/tag/v0.14.3
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.