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.
References
Link | Resource |
---|---|
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 |
History
No history.
MITRE Information
Status: PUBLISHED
Assigner: GitHub_M
Published: 2021-11-03T17:50:10
Updated: 2021-11-03T17:50:10
Reserved: 2021-09-15T00:00:00
Link: CVE-2021-41134
JSON object: View
NVD Information
Status : Analyzed
Published: 2021-11-03T18:15:08.350
Modified: 2021-11-05T17:24:13.647
Link: CVE-2021-41134
JSON object: View
Redhat Information
No data.
CWE