cve.bz

CVE-2021-41134

5.4 mediumEPSS 0.7%

Medium (5.4) in jupyter. EPSS 0.7% chance of exploitation in the next 30 days. Fixed in nbdime 1.1.1, 2.1.1, 3.1.1.

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.

Severity

CVSS 3.1

5.4 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
EPSS
0.7% chance of exploitation in the next 30 days; higher than 53% of CVEs (scores of 2026-10-31)
CWE
CWE-79
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-p6rw-44q7-3fw4PyPInbdime<1.1.11.1.1
GHSA-p6rw-44q7-3fw4PyPInbdime>=2.0.0 <2.1.12.1.1
GHSA-p6rw-44q7-3fw4PyPInbdime>=3.0.0 <3.1.13.1.1
GHSA-p6rw-44q7-3fw4npmnbdime<5.0.25.0.2
GHSA-p6rw-44q7-3fw4npmnbdime>=6.0.0 <6.1.26.1.2
GHSA-p6rw-44q7-3fw4npmnbdime-jupyterlab<1.0.11.0.1
GHSA-p6rw-44q7-3fw4npmnbdime-jupyterlab>=2.0.0 <2.1.12.1.1
PYSEC-2021-428PyPInbdime<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

Check your stackJSON