CVEvulnerability
CVE-2021-41134
5.4 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2021-11-03
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 8.7 HIGH — CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
- CVSS 3.1 ([email protected])
- 5.4 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- CVSS 2.0 ([email protected])
- 3.5 LOW — AV:N/AC:M/Au:S/C:N/I:P/A:N
- Weaknesses
- CWE-79
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.
Affected configurations
• jupyter nbdime (>= 1.0.0 < 1.1.1)
• jupyter nbdime (>= 2.0.0 < 2.1.1)
• jupyter nbdime (>= 3.0.0 <= 3.1.1)
• jupyter nbdime (>= 5.0.0 < 5.0.2)
• jupyter nbdime (>= 6.0.0 < 6.1.2)
• jupyter nbdime-jupyterlab (>= 1.0.0 < 1.0.1)
• jupyter nbdime-jupyterlab (>= 2.0.0 < 2.1.1)
Related
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea Patch, Third Party Advisory
- https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4 Third Party Advisory
- https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea Patch, Third Party Advisory
- https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4 Third Party Advisory