PYSEC-2021-428

    Dashboard / Vulnerabilities / PYSEC-2021-428

    PYSEC-2021-428

    Published: 3 Nov 2021Last Modified: 8 Nov 2023

    Summary:

    Details: 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 packages

    Package

    Name: nbdime

    Purl: pkg:pypi/nbdime

    Affected ranges

    Type: GIT

    Events:

    Affected versions

    0.1.0
    0.1.0.dev
    0.1.0b1
    0.1.1
    0.1.2

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    PYSEC-2021-428 | CVE-DB