Advisory

GHSA-p6rw-44q7-3fw4

Also known as: CVE-2021-41134, PYSEC-2021-428

Summary

Stored XSS in Jupyter nbdime

Details

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 [[email protected]](mailto:[email protected]).

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-11-08 18:09 UTC
Modified
2026-07-08 06:27 UTC

Affected packages and fixes

nbdime

PyPI · All systems

Affected

  • introduced 0, fixed 1.1.1 (ecosystem)

Fixed versions

1.1.1

Fix

  • Fixed version 1.1.1
    pip install --upgrade nbdime==1.1.1

nbdime

PyPI · All systems

Affected

  • introduced 2.0.0, fixed 2.1.1 (ecosystem)

Fixed versions

2.1.1

Fix

  • Fixed version 2.1.1
    pip install --upgrade nbdime==2.1.1

nbdime

PyPI · All systems

Affected

  • introduced 3.0.0, fixed 3.1.1 (ecosystem)

Fixed versions

3.1.1

Fix

  • Fixed version 3.1.1
    pip install --upgrade nbdime==3.1.1

nbdime

npm · All systems

Affected

  • introduced 0, fixed 5.0.2 (semver)

Fixed versions

5.0.2

Fix

nbdime

npm · All systems

Affected

  • introduced 6.0.0, fixed 6.1.2 (semver)

Fixed versions

6.1.2

Fix

nbdime-jupyterlab

npm · All systems

Affected

  • introduced 0, fixed 1.0.1 (semver)

Fixed versions

1.0.1

Fix

nbdime-jupyterlab

npm · All systems

Affected

  • introduced 2.0.0, fixed 2.1.1 (semver)

Fixed versions

2.1.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences