CVE-2021-41134: Stored XSS in Jupyter nbdime
Vulnerability summary
CVE-2021-41134 is a high (CVSS 8.7) vulnerability in jupyter nbdime. EPSS estimates a 0.70% chance of exploitation in the next 30 days, higher than 54.6% of scored vulnerabilities.
Not severe (CVSS 8.7, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 03-11-2021PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 4 sources · 3 versions- OSV · NpmEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
- OSV · PypiEcosystem advisory · calculated8.7HighCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
- OSV · NpmEcosystem advisory · calculated8.7HighCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
- NVDNIST5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:NDiffers
EPSS trend
Probability
0.70%
Chance of exploitation in the next 30 days
Percentile
55%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.70% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
Jupyter2 products
- nbdime< 1.1.1 - nbdime (pip) | ≥ 2.0.0 , < 2.1.1 - nbdime (pip) (No fix recorded) | ≥ 3.0.0, < 3.1.1 - nbdime (pip) (No fix recorded) | < 5.0.2 - nbdime (npm) | ≥ 6.0.0, < 6.1.2 - nbdime (npm) (No fix recorded) | < 1.0.1 - nbdime-jupyterlab (npm) | ≥ 2.0.0, < 2.1.1 - nbdime-jupyterlab (npm) (No fix recorded) | ≥ 1.0.0, < 1.1.1 | ≥ 2.0.0, < 2.1.1 | ≥ 3.0.0, ≤ 3.1.1 | ≥ 5.0.0, < 5.0.2 | ≥ 6.0.0, < 6.1.2
- nbdime-jupyterlab≥ 1.0.0, < 1.0.1 | ≥ 2.0.0, < 2.1.1
Npm2 products
- nbdime< 5.0.2 | ≥ 6.0.0, < 6.1.2
- nbdime-jupyterlab< 1.0.1 | ≥ 2.0.0, < 2.1.1
PyPI1 product
- nbdime< 1.1.1 | ≥ 2.0.0, < 2.1.1 | ≥ 3.0.0, < 3.1.1 | < e44a5cc7677f24b45ebafc756db49058c2f750ea
3 vendors · 5 products
References
5 links- github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4X Refsource CONFIRMWEBAdvisoryThird Party Advisory
- github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750eaX Refsource MISCWEBFIXPatchThird Party Advisory
- github.com/jupyter/nbdimePACKAGE