CVE-2021-41134
MEDIUM 5.4CVSS 3.1Stored XSS in Jupyter nbdime
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.
- Published
- 3 Nov 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-p6rw-44q7-3fw4PYSEC-2021-428
- Sources
- NVDJSONOSV GHSA-p6rw-44q7-3fw4JSONOSV PYSEC-2021-428JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 3.5 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jupyter | nbdimecpe:2.3:a:jupyter:nbdime:*:*:*:*:*:python:*:* |
>= 1.0.0, < 1.1.1 | 1.1.1 |
| NVD | jupyter | nbdimecpe:2.3:a:jupyter:nbdime:*:*:*:*:*:python:*:* |
>= 2.0.0, < 2.1.1 | 2.1.1 |
| NVD | jupyter | nbdimecpe:2.3:a:jupyter:nbdime:*:*:*:*:*:python:*:* |
>= 3.0.0, <= 3.1.1 | |
| NVD | jupyter | nbdimecpe:2.3:a:jupyter:nbdime:*:*:*:*:*:node.js:*:* |
>= 5.0.0, < 5.0.2 | 5.0.2 |
| NVD | jupyter | nbdimecpe:2.3:a:jupyter:nbdime:*:*:*:*:*:node.js:*:* |
>= 6.0.0, < 6.1.2 | 6.1.2 |
| NVD | jupyter | nbdime-jupyterlabcpe:2.3:a:jupyter:nbdime-jupyterlab:*:*:*:*:*:node.js:*:* |
>= 1.0.0, < 1.0.1 | 1.0.1 |
| NVD | jupyter | nbdime-jupyterlabcpe:2.3:a:jupyter:nbdime-jupyterlab:*:*:*:*:*:node.js:*:* |
>= 2.0.0, < 2.1.1 | 2.1.1 |
| OSV | PyPI | nbdime | < 1.1.1 | 1.1.1 |
| OSV | PyPI | nbdime | >= 2.0.0, < 2.1.1 | 2.1.1 |
| OSV | PyPI | nbdime | >= 3.0.0, < 3.1.1 | 3.1.1 |
| OSV | npm | nbdime | < 5.0.2 | 5.0.2 |
| OSV | npm | nbdime | >= 6.0.0, < 6.1.2 | 6.1.2 |
| OSV | npm | nbdime-jupyterlab | < 1.0.1 | 1.0.1 |
| OSV | npm | nbdime-jupyterlab | >= 2.0.0, < 2.1.1 | 2.1.1 |
| OSV | PyPI | nbdime | < 1.1.1; >= 2.0.0, < 2.1.1; >= 3.0.0, < 3.1.1 | 1.1.1, 2.1.1, 3.1.1 |
References
- https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea · Patch, Third Party Advisory, WEB, FIX
- https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4 · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-41134 · ADVISORY
- https://github.com/jupyter/nbdime · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/nbdime/PYSEC-2021-428.yaml · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 3 Nov 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 3 Nov 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 Nov 2021)