Read the docs
TI-2026-66906 Aliases GHSA-6vxv-wg6j-5qwp

Gogs: XSS in .ipynb files renderer due to outdated notebookjs

Priority LOW 38CWE-1395Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
Cross-site scripting
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-80.

Summary

### Summary Gogs renders Jupyter notebook files (`.ipynb`) using [jsvine/notebookjs](https://github.com/jsvine/notebookjs), but the version is outdated, missing patches for known XSS vulnerabilities. ### Details Gogs uses version 0.4.2 of notebookjs to render Jupyter notebook files: https://github.com/gogs/gogs/blob/7297aee50d4c115836c7de8a3a233daaef87b911/templates/base/head.tmpl#L47 The latest version of [jsvine/notebookjs](https://github.com/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. ### PoC 1. Create a new repository 2. Create a file inside the repository named `xss.ipynb` and give it the following content: ```json {"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" /> 3. Save the file and view the file in Gogs. Notice that the XSS popup triggers: <img width="1317" height="407" alt="image" src="https://github.com/user-attachments/assets/3b18d870-7194-41b0-92db-687e952abc07" /> ### Impact 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.

Why it matters now

Fix Fixed gogs.io/gogs (Go): 0.14.3

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—gogs.io/gogs (Go)before 0.14.30.14.3Patch availableGHSA-6vxv-wg6j-5qwp
  • gogs.io/gogs (Go) Vendor— Affected before 0.14.3 Fixed in 0.14.3 Patch available GHSA-6vxv-wg6j-5qwp

Remediation

  • Fix · GHSA-6vxv-wg6j-5qwp gogs.io/gogs (Go) Fixed in 0.14.3 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-6vxv-wg6j-5qwp

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences