{"cve":"CVE-2021-41134","nvd":{"published":"2021-11-03T18:15:08.350","modified":"2026-06-17T04:07:56.550","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4},"cwes":["CWE-79"],"references":["https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea","https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4","https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea","https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4"],"products":["jupyter:nbdime","jupyter:nbdime-jupyterlab"],"source":"nvd","synced_at":"2026-10-19T21:24:39.218183596+00:00"},"epss":{"cve":"CVE-2021-41134","score":0.00703,"percentile":0.53297,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-p6rw-44q7-3fw4","url":"https://osv.dev/vulnerability/GHSA-p6rw-44q7-3fw4","summary":"Stored XSS in Jupyter nbdime","modified":"2026-07-08T06:27:23.429525263Z","packages":[{"ecosystem":"PyPI","name":"nbdime","purl":"pkg:pypi/nbdime","ranges":["<1.1.1"],"fixed":["1.1.1"]},{"ecosystem":"PyPI","name":"nbdime","purl":"pkg:pypi/nbdime","ranges":[">=2.0.0 <2.1.1"],"fixed":["2.1.1"]},{"ecosystem":"PyPI","name":"nbdime","purl":"pkg:pypi/nbdime","ranges":[">=3.0.0 <3.1.1"],"fixed":["3.1.1"]},{"ecosystem":"npm","name":"nbdime","purl":"pkg:npm/nbdime","ranges":["<5.0.2"],"fixed":["5.0.2"]},{"ecosystem":"npm","name":"nbdime","purl":"pkg:npm/nbdime","ranges":[">=6.0.0 <6.1.2"],"fixed":["6.1.2"]},{"ecosystem":"npm","name":"nbdime-jupyterlab","purl":"pkg:npm/nbdime-jupyterlab","ranges":["<1.0.1"],"fixed":["1.0.1"]},{"ecosystem":"npm","name":"nbdime-jupyterlab","purl":"pkg:npm/nbdime-jupyterlab","ranges":[">=2.0.0 <2.1.1"],"fixed":["2.1.1"]}]},{"id":"PYSEC-2021-428","url":"https://osv.dev/vulnerability/PYSEC-2021-428","summary":"","modified":"2023-11-08T04:06:52.416770Z","packages":[{"ecosystem":"PyPI","name":"nbdime","purl":"pkg:pypi/nbdime","ranges":["<1.1.1",">=2.0.0 <2.1.1",">=3.0.0 <3.1.1"],"fixed":["1.1.1","2.1.1","3.1.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}