CVE-2021-41134: Stored XSS in Jupyter nbdime

Published Nov 3, 2021
·
Updated

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.

Other sources

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.

MITRE

Affected Software

14 affected componentsFixes available
npm/nbdime-jupyterlab>=2.0.0<2.1.1
2.1.1
npm/nbdime-jupyterlab<1.0.1
1.0.1
npm/nbdime>=6.0.0<6.1.2
6.1.2
npm/nbdime<5.0.2
5.0.2
pip/nbdime>=3.0.0<3.1.1
3.1.1
pip/nbdime>=2.0.0<2.1.1
2.1.1
pip/nbdime<1.1.1
1.1.1
jupyter nbdime python>=1.0.0<1.1.1
jupyter nbdime python>=2.0.0<2.1.1
jupyter nbdime python>=3.0.0<=3.1.1
jupyter Nbdime Node.js>=5.0.0<5.0.2
jupyter Nbdime Node.js>=6.0.0<6.1.2
jupyter Nbdime-jupyterlab Node.js>=1.0.0<1.0.1
jupyter Nbdime-jupyterlab Node.js>=2.0.0<2.1.1

Event History

Nov 3, 2021
CVE Published
via MITRE·05:50 PM
Data Sourced
via MITRE·05:50 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Nov 8, 2021
Advisory Published
via GitHub·06:09 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-41134?

CVE-2021-41134 is a stored cross-site scripting (XSS) vulnerability in the Jupyter Nbdime project.

2

Which versions of nbdime are affected by CVE-2021-41134?

Versions 1.0.0 to 1.1.1, 2.0.0 to 2.1.1, 3.0.0 to 3.1.1 of nbdime are affected by CVE-2021-41134.

3

How severe is CVE-2021-41134?

CVE-2021-41134 has a severity score of 5.4 (high).

4

How do I fix CVE-2021-41134?

To fix CVE-2021-41134, upgrade to a version of nbdime that is not affected by the vulnerability.

5

Where can I find more information about CVE-2021-41134?

You can find more information about CVE-2021-41134 in the Jupyter Nbdime project's GitHub repository and security advisories.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203