We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2021-41134

Stored XSS in Jupyter nbdime



AssignerGitHub_M
Reserved2021-09-15
Published2021-11-03
Updated2024-08-04

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.



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

Product status

< 1.1.1 - nbdime (pip)
affected

>= 2.0.0 , < 2.1.1 - nbdime (pip)
affected

>= 3.0.0, < 3.1.1 - nbdime (pip)
affected

< 5.0.2 - nbdime (npm)
affected

>= 6.0.0, < 6.1.2 - nbdime (npm)
affected

< 1.0.1 - nbdime-jupyterlab (npm)
affected

>= 2.0.0, < 2.1.1 - nbdime-jupyterlab (npm)
affected

References

https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4

https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea

cve.org CVE-2021-41134

nvd.nist.gov CVE-2021-41134

Download JSON

Share this page
https://cve.threatint.com/CVE/CVE-2021-41134
Subscribe to our newsletter to learn more about our work.