Описание
Stored XSS in Jupyter nbdime
Impact
Improper handling of user controlled input caused a stored cross-site scripting (XSS) vulnerability. All previous versions of nbdime are affected.
Patches
Security patches will be released for each of the major versions of the nbdime packages since version 1.x of the nbdime python package.
Python
- nbdime 1.x: Patched in v. 1.1.1
- nbdime 2.x: Patched in v. 2.1.1
- nbdime 3.x: Patched in v. 3.1.1
npm
- nbdime 6.x version: Patched in 6.1.2
- nbdime 5.x version: Patched in 5.0.2
- nbdime-jupyterlab 1.x version: Patched in 1.0.1
- nbdime-jupyterlab 2.x version: Patched in 2.1.1
For more information
If you have any questions or comments about this advisory email us at security@ipython.org.
Пакеты
nbdime
< 1.1.1
1.1.1
nbdime
>= 2.0.0, < 2.1.1
2.1.1
nbdime
>= 3.0.0, < 3.1.1
3.1.1
nbdime
< 5.0.2
5.0.2
nbdime
>= 6.0.0, < 6.1.2
6.1.2
nbdime-jupyterlab
< 1.0.1
1.0.1
nbdime-jupyterlab
>= 2.0.0, < 2.1.1
2.1.1
Связанные уязвимости
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.
nbdime provides tools for diffing and merging of Jupyter Notebooks. In ...