Medium severity · published Nov 3, 2021
CVE-2021-41134
nbdime provides tools for diffing and merging of Jupyter Notebooks
5.4
CVSS
0.7%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.7% · higher than 53% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
NB
Nbdime · Jupyter
1.0.0 before 1.1.1; 2.0.0 before 2.1.1; 3.0.0 through 3.1.1; 5.0.0 before 5.0.2; 6.0.0 before 6.1.2 · source: NVD
NB
Nbdime-jupyterlab · Jupyter
1.0.0 before 1.0.1; 2.0.0 before 2.1.1 · source: NVD