PT-2026-51634 · Gogs · Gogs
CVE-2026-52816
·
Published
2026-06-23
·
Updated
2026-07-30
CVSS v4.0
6.4
Medium
| Vector | AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N |
Name of the Vulnerable Software and Affected Versions
Gogs versions prior to 0.14.3
Description
The Jupyter Notebook (ipynb) sanitizer endpoint at 'POST /-/api/sanitize ipynb' allows arbitrary
data: URIs without proper restrictions, which can lead to Cross-Site Scripting (XSS). The endpoint utilizes bluemonday.UGCPolicy() with p.AllowURLSchemes("data"), permitting all data URI schemes, including data:text/html, which enables the injection of malicious HTML or JavaScript. Furthermore, the endpoint lacks authentication middleware, allowing any registered user to exploit this issue.Recommendations
Update to version 0.14.3.
As a temporary workaround, restrict access to the 'POST /-/api/sanitize ipynb' endpoint to minimize the risk of exploitation.
Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Gogs