CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2021 · Jupyter

CVE-2021-41134
Jupyter Nbdime vulnerability

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.

Affected products

Nbdime, Nbdime-jupyterlab. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Jupyter Nbdime runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Set the orderSystems that can be reached from the internet come first, then the rest.

References

More vulnerabilities in Jupyter products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.