OSV 1.4.0 · github-reviewed · 修改于 2026-06-20 05:42
发布时间
2026-06-20 05:42
GitHub 审查时间
2026-06-20 05:42
NVD 发布时间
—
源文件
advisories/github-reviewed/2026/06/GHSA-6vxv-wg6j-5qwp/GHSA-6vxv-wg6j-5qwp.json
Gogs renders Jupyter notebook files (.ipynb) using jsvine/notebookjs, but the version is outdated, missing patches for known XSS vulnerabilities.
Gogs uses version 0.4.2 of notebookjs to render Jupyter notebook files:
The latest version of jsvine/notebookjs is 0.8.3, patching many XSS vulnerabilities in its releases. The proof of concept below shows an example working payload that renders HTML through Markdown.
xss.ipynb and give it the following content:{"cells": [{"cell_type": "markdown", "metadata": {}, "source": ["<img src=x onerror=\"alert(origin)\">"]}], "metadata": {}, "nbformat": 4, "nbformat_minor": 2}
<img width="1054" height="208" alt="image" src="https://github.com/user-attachments/assets/49b7f33c-c4df-4537-99e9-b1ea74f2c6de" />
Any user with rights to create repositories can create XSS payloads that take over the victim's account when visited. Either through their own exploration of the files or by directly linking them the vulnerable URL.