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
- github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea · Patch
- github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-41134
- github.com/pypa/advisory-database/tree/main/vulns/nbdime/PYSEC-2021-428.yaml
- github.com/advisories/GHSA-p6rw-44q7-3fw4
- nvd.nist.gov/vuln/detail/CVE-2021-41134
- cve.org/CVERecord?id=CVE-2021-41134
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.