CVE Database
/

CVE-2021-41134

Back to search

CVE-2021-41134

Published: Nov 3, 2021

Modified: Aug 4, 2024

PUBLISHED

CVSS v3.1

8.7

HIGH

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.

VendorProductVersions

jupyter

nbdime

affected
< 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)

+2 more versions

Weaknesses (CWE)

CVSS v3.1 Details

CVSS v3.1 Vector

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

Attack Vector

Network

Attack Complexity

Low

Privileges Required

Low

User Interaction

Required

Scope

Changed

Confidentiality

High

Integrity

High

Availability

None

Security Training

Train your team to recognize and prevent security threats with our comprehensive security awareness program.

Start Training

Vulnerability Scanning

Discover vulnerabilities in your applications and infrastructure before attackers do.

Scan Now