Stored XSS in Jupyter nbdime
CVE-2021-41134

8.7HIGH

Key Information:

Vendor

Jupyter

Status
Vendor
CVE Published:
3 November 2021

What is CVE-2021-41134?

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 Version(s)

nbdime < 1.1.1 - nbdime (pip) < 1.1.1 - nbdime (pip)

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

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

References

CVSS V3.1

Score:
8.7
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
Required
Scope:
Changed

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.