CVE-2021-41134 - CVE House
Back to Database
Status published High CVE-2021-41134

Stored XSS in Jupyter nbdime

Vulnerability Description

nbdime provides tools for diffing and merging of Jupyter Notebooks. In affected versions a stored cross-site scripting (XSS) issue exists within the Jupyter-owned nbdime project. It appears that when reading the file name and path from disk, the extension does not sanitize the string it constructs before returning it to be displayed. The diffNotebookCheckpoint function within nbdime causes this issue. When attempting to display the name of the local notebook (diffNotebookCheckpoint), nbdime appears to simply append .ipynb to the name of the input file. The NbdimeWidget is then created, and the base string is passed through to the request API function. From there, the frontend simply renders the HTML tag and anything along with it. Users are advised to patch to the most recent version of the affected product.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2021-41134

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

nbdime
Vulnerable Versions:
< 1.1.1 - nbdime (pip), >= 2.0.0 , < 2.1.1 - nbdime (pip), >= 3.0.0, < 3.1.1 - nbdime (pip), < 5.0.2 - nbdime (npm), >= 6.0.0, < 6.1.2 - nbdime (npm), < 1.0.1 - nbdime-jupyterlab (npm), >= 2.0.0, < 2.1.1 - nbdime-jupyterlab (npm)

Timeline

Official Publish: November 3rd, 2021
Last Modified: August 4th, 2024
Added to House: July 21st, 2026

CVSS Vectors

V3: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

Weaknesses (CWE)