VYPR
Moderate severityNVD Advisory· Published Nov 3, 2021· Updated Aug 4, 2024

Stored XSS in Jupyter nbdime

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

4

Patches

Vulnerability mechanics

Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

5

News mentions

0

No linked articles in our index yet.