CVE-2021-41134

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:python:*:*
cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:python:*:*
cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:python:*:*

Configuration 2 (hide)

OR cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:node.js:*:*
cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:node.js:*:*

Configuration 3 (hide)

OR cpe:2.3:a:jupyter:nbdime-jupyterlab:*:*:*:*:*:node.js:*:*
cpe:2.3:a:jupyter:nbdime-jupyterlab:*:*:*:*:*:node.js:*:*

History

05 Nov 2021, 17:24

Type Values Removed Values Added
References (CONFIRM) https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4 - (CONFIRM) https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4 - Third Party Advisory
References (MISC) https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea - (MISC) https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea - Patch, Third Party Advisory
CPE cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:node.js:*:*
cpe:2.3:a:jupyter:nbdime-jupyterlab:*:*:*:*:*:node.js:*:*
cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:python:*:*
CVSS v2 : unknown
v3 : 8.7
v2 : 3.5
v3 : 5.4

03 Nov 2021, 18:22

Type Values Removed Values Added
New CVE

Information

Published : 2021-11-03 18:15

Updated : 2023-12-10 14:09


NVD link : CVE-2021-41134

Mitre link : CVE-2021-41134

CVE.ORG link : CVE-2021-41134


JSON object : View

Products Affected

jupyter

  • nbdime
  • nbdime-jupyterlab
CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')