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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | nbdime | < 5.0.2, >= 6.0.0, < 6.1.2 | 5.0.2, 6.1.2 |
| npm package | nbdime-jupyterlab | < 1.0.1, >= 2.0.0, < 2.1.1 | 1.0.1, 2.1.1 |
| Python (PyPI) | nbdime | < 1.1.1, >= 2.0.0, < 2.1.1, >= 3.0.0, < 3.1.1 | 1.1.1, 2.1.1, 3.1.1 |
References
- https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4
- https://nvd.nist.gov/vuln/detail/CVE-2021-41134
- https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea
- https://github.com/jupyter/nbdime
- https://github.com/pypa/advisory-database/tree/main/vulns/nbdime/PYSEC-2021-428.yaml
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N- Weakness (CWE)
CWE-79- Platform
- npm, Python (PyPI)
- Package
nbdime, nbdime-jupyterlab- Disclosed
- 03.11.2021
- Updated
- 11.10.2026 13:19
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2021-428 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-p6rw-44q7-3fw4 - CC BY 4.0
Vulnerability history: nbdime
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.