VYPR
High severity8.7NVD Advisory· Published Nov 3, 2021· Updated Jun 17, 2026

CVE-2021-41134

CVE-2021-41134

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
nbdimePyPI
< 1.1.11.1.1
nbdimePyPI
>= 2.0.0, < 2.1.12.1.1
nbdimePyPI
>= 3.0.0, < 3.1.13.1.1
nbdimenpm
< 5.0.25.0.2
nbdimenpm
>= 6.0.0, < 6.1.26.1.2
nbdime-jupyterlabnpm
< 1.0.11.0.1
nbdime-jupyterlabnpm
>= 2.0.0, < 2.1.12.1.1

Affected products

7
  • cpe:2.3:a:jupyter:nbdime-jupyterlab:*:*:*:*:*:node.js:*:*
    Range: >=1.0.0,<1.0.1
  • Jupyter/nbdime3 versions
    cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:node.js:*:*+ 2 more
    • cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:node.js:*:*range: >=5.0.0,<5.0.2
    • cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:python:*:*range: >=1.0.0,<1.1.1
    • (no CPE)range: < 1.1.1 - nbdime (pip)
  • ghsa-coords3 versions
    < 5.0.2+ 2 more
    • (no CPE)range: < 5.0.2
    • (no CPE)range: < 1.0.1
    • (no CPE)range: < 1.1.1

Patches

Vulnerability mechanics

References

5

News mentions

0

No linked articles in our index yet.