CVE-2021-41134

High

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.

SeverityHigh
CVSS8.7
Exploit probability—
ProductJupyter Nbdime
PublishedNov 3, 2021
First seenNov 3, 2021

How to fix

Update
  • jupyter nbdime1.1.1, 2.1.1, 5.0.2, 6.1.2 or later
  • jupyter nbdime-jupyterlab1.0.1, 2.1.1 or later
  • nbdime1.1.1, 2.1.1, 3.1.1, 5.0.2, 6.1.2 or later
  • nbdime-jupyterlab1.0.1, 2.1.1 or later

Affected products

ProductAffected versionsFixed in
jupyter nbdime1.0.0 ≤ v < 1.1.1, 2.0.0 ≤ v < 2.1.1, 3.0.0 ≤ v ≤ 3.1.1, 5.0.0 ≤ v < 5.0.2, 6.0.0 ≤ v < 6.1.21.1.1, 2.1.1, 5.0.2, 6.1.2
jupyter nbdime-jupyterlab1.0.0 ≤ v < 1.0.1, 2.0.0 ≤ v < 2.1.11.0.1, 2.1.1
nbdimePyPIv < 1.1.1, 2.0.0 ≤ v < 2.1.1, 3.0.0 ≤ v < 3.1.1, v < 5.0.2, 6.0.0 ≤ v < 6.1.21.1.1, 2.1.1, 3.1.1, 5.0.2, 6.1.2
nbdime-jupyterlabnpmv < 1.0.1, 2.0.0 ≤ v < 2.1.11.0.1, 2.1.1

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.