CVE-2021-41134

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-41134
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-41134.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-41134
Aliases
Related
Published
2021-11-03T18:15:08Z
Modified
2024-10-12T08:27:08.200614Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
[none]
Details

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

Affected packages

Git / github.com/jupyter/nbdime

Affected ranges

Type
GIT
Repo
https://github.com/jupyter/nbdime
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.1.0
0.1.0b1
0.1.1
0.1.2
0.2.0
0.4.0
0.4.1

1.*

1.0.0
1.0.0-rc0
1.0.0-rc1
1.0.1
1.0.2
1.0.3
1.0.4
1.0.5
1.0.6
1.0.7
1.1.0

2.*

2.0.0
2.1.0

3.*

3.0.0
3.0.0b1
3.1.0

nbdime-jupyterlab@0.*

nbdime-jupyterlab@0.1.0
nbdime-jupyterlab@0.1.1
nbdime-jupyterlab@0.1.2
nbdime-jupyterlab@0.2.0
nbdime-jupyterlab@0.3.0
nbdime-jupyterlab@0.4.0
nbdime-jupyterlab@0.5.0
nbdime-jupyterlab@0.6.0
nbdime-jupyterlab@0.6.1

nbdime-jupyterlab@1.*

nbdime-jupyterlab@1.0.0

nbdime-jupyterlab@2.*

nbdime-jupyterlab@2.0.0
nbdime-jupyterlab@2.0.1
nbdime-jupyterlab@2.1.0
nbdime-jupyterlab@2.1.0-beta.1

nbdime-webapp@2.*

nbdime-webapp@2.0.0

nbdime@1.*

nbdime@1.0.0
nbdime@1.0.1
nbdime@1.0.2
nbdime@1.0.3
nbdime@1.0.4

nbdime@2.*

nbdime@2.0.0

nbdime@3.*

nbdime@3.0.0
nbdime@3.1.0

nbdime@4.*

nbdime@4.0.0
nbdime@4.0.1
nbdime@4.0.2

nbdime@5.*

nbdime@5.0.0
nbdime@5.0.1

nbdime@6.*

nbdime@6.0.0
nbdime@6.1.0
nbdime@6.1.0-beta.1
nbdime@6.1.1