Stored XSS in Jupyter nbdime
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.
| Package | Affected versions | Patched versions |
|---|---|---|
nbdimePyPI | < 1.1.1 | 1.1.1 |
nbdimePyPI | >= 2.0.0, < 2.1.1 | 2.1.1 |
nbdimePyPI | >= 3.0.0, < 3.1.1 | 3.1.1 |
nbdimenpm | < 5.0.2 | 5.0.2 |
nbdimenpm | >= 6.0.0, < 6.1.2 | 6.1.2 |
nbdime-jupyterlabnpm | < 1.0.1 | 1.0.1 |
nbdime-jupyterlabnpm | >= 2.0.0, < 2.1.1 | 2.1.1 |
Affected products
4- 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
Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
5- github.com/advisories/GHSA-p6rw-44q7-3fw4ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-41134ghsaADVISORY
- github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750eaghsax_refsource_MISCWEB
- github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4ghsax_refsource_CONFIRMWEB
- github.com/pypa/advisory-database/tree/main/vulns/nbdime/PYSEC-2021-428.yamlghsaWEB
News mentions
0No linked articles in our index yet.