CVE-2021-41134
published high CVSS 3.1 · 8.7Stored XSS in Jupyter nbdime
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| jupyter | — | nbdime< 1.1.1 - nbdime (pip) · >= 2.0.0 , < 2.1.1 - nbdime (pip) · >= 3.0.0, < 3.1.1 - nbdime (pip) · < 5.0.2 - nbdime (npm) · >= 6.0.0, < 6.1.2 - nbdime (npm) · < 1.0.1 - nbdime-jupyterlab (npm) · >= 2.0.0, < 2.1.1 - nbdime-jupyterlab (npm) | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Tumbleweed | jupyter-nbdimeaarch64 | Advisory build | 6.1.2-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | jupyter-nbdimeppc64le | Advisory build | 6.1.2-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | jupyter-nbdimes390x | Advisory build | 6.1.2-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | jupyter-nbdimex86_64 | Advisory build | 6.1.2-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | jupyter-nbdime-gitaarch64 | Advisory build | 6.1.2-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | jupyter-nbdime-gitppc64le | Advisory build | 6.1.2-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | jupyter-nbdime-gits390x | Advisory build | 6.1.2-8.1 | OPENSUSE-SU-2024:11630-1 |
Show 21 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | jupyter-nbdime-gitx86_64 | Advisory build | 6.1.2-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | jupyter-nbdime-hgaarch64 | Advisory build | 6.1.2-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | jupyter-nbdime-hgppc64le | Advisory build | 6.1.2-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | jupyter-nbdime-hgs390x | Advisory build | 6.1.2-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | jupyter-nbdime-hgx86_64 | Advisory build | 6.1.2-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | jupyter-nbdime-jupyterlabaarch64 | Advisory build | 2.1.1-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | jupyter-nbdime-jupyterlabppc64le | Advisory build | 2.1.1-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | jupyter-nbdime-jupyterlabs390x | Advisory build | 2.1.1-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | jupyter-nbdime-jupyterlabx86_64 | Advisory build | 2.1.1-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python36-nbdimeaarch64 | Advisory build | 3.1.1-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python36-nbdimeppc64le | Advisory build | 3.1.1-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python36-nbdimes390x | Advisory build | 3.1.1-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python36-nbdimex86_64 | Advisory build | 3.1.1-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-nbdimeaarch64 | Advisory build | 3.1.1-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-nbdimeppc64le | Advisory build | 3.1.1-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-nbdimes390x | Advisory build | 3.1.1-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-nbdimex86_64 | Advisory build | 3.1.1-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-nbdimeaarch64 | Advisory build | 3.1.1-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-nbdimeppc64le | Advisory build | 3.1.1-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-nbdimes390x | Advisory build | 3.1.1-8.1 | OPENSUSE-SU-2024:11630-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-nbdimex86_64 | Advisory build | 3.1.1-8.1 | OPENSUSE-SU-2024:11630-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| jupyter | nbdime | < 1.1.1 - nbdime (pip) (affected)>= 2.0.0 , < 2.1.1 - nbdime (pip) (affected)>= 3.0.0, < 3.1.1 - nbdime (pip) (affected)< 5.0.2 - nbdime (npm) (affected)>= 6.0.0, < 6.1.2 - nbdime (npm) (affected)< 1.0.1 - nbdime-jupyterlab (npm) (affected)>= 2.0.0, < 2.1.1 - nbdime-jupyterlab (npm) (affected) | GitHub_M · cna |
Weaknesses
1- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
2Provider assertions
2GitHub_M · cna
Stored XSS in Jupyter nbdime
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 35b58723ffe986c22d5edafb399fb78e9cd2f47f34fef919301991096daf8f3d
- Ingested
- 23 Sep 2026, 07:56:07 UTC
- Source record
- Official CVE record