Bug 1192355 - (CVE-2021-41134) VUL-0: CVE-2021-41134: python-nbdime: diffNotebookCheckpoint does not sanitize strings before displaying, resulting in a stored XSS
(CVE-2021-41134)
VUL-0: CVE-2021-41134: python-nbdime: diffNotebookCheckpoint does not sanitiz...
Status: RESOLVED FIXED
Classification: openSUSE
Product: openSUSE Distribution
Classification: openSUSE
Component: Security
Leap 15.2
Other Other
: P3 - Medium : Major (vote)
: ---
Assigned To: Benjamin Greiner
Security Team bot
https://smash.suse.de/issue/314184/
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-11-04 15:43 UTC by Thomas Leroy
Modified: 2021-11-16 14:00 UTC (History)
1 user (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Leroy 2021-11-04 15:43:46 UTC
rh#2020261

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.

References:

https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea
https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4

References:
https://bugzilla.redhat.com/show_bug.cgi?id=2020261
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-41134
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-41134
https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea
https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4
Comment 1 Thomas Leroy 2021-11-04 16:16:57 UTC
openSUSE:Factory is affected.
Comment 2 Benjamin Greiner 2021-11-13 16:19:45 UTC
https://build.opensuse.org/request/show/931266
Comment 3 Benjamin Greiner 2021-11-16 14:00:42 UTC
fixed in Factory