CVE-2021-41134
CVSS V2 Low 3.5
CVSS V3 Medium 5.4
Description
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.
Overview
- CVE ID
- CVE-2021-41134
- Assigner
- security-advisories@github.com
- Vulnerability Status
- Analyzed
- Published Version
- 2021-11-03T18:15:08
- Last Modified Date
- 2021-11-05T17:24:13
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:python:*:* | 1 | OR | 1.0.0 | 1.1.1 |
cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:python:*:* | 1 | OR | 2.0.0 | 2.1.1 |
cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:python:*:* | 1 | OR | 3.0.0 | 3.1.1 |
cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:node.js:*:* | 1 | OR | 5.0.0 | 5.0.2 |
cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:node.js:*:* | 1 | OR | 6.0.0 | 6.1.2 |
cpe:2.3:a:jupyter:nbdime-jupyterlab:*:*:*:*:*:node.js:*:* | 1 | OR | 1.0.0 | 1.0.1 |
cpe:2.3:a:jupyter:nbdime-jupyterlab:*:*:*:*:*:node.js:*:* | 1 | OR | 2.0.0 | 2.1.1 |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:M/Au:S/C:N/I:P/A:N
- Access Vector
- NETWORK
- Access Compatibility
- MEDIUM
- Authentication
- SINGLE
- Confidentiality Impact
- NONE
- Integrity Impact
- PARTIAL
- Availability Impact
- NONE
- Base Score
- 3.5
- Severity
- LOW
- Exploitability Score
- 6.8
- Impact Score
- 2.9
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- LOW
- User Interaction
- REQUIRED
- Scope
- CHANGED
- Confidentiality Impact
- LOW
- Availability Impact
- NONE
- Base Score
- 5.4
- Base Severity
- MEDIUM
- Exploitability Score
- 2.3
- Impact Score
- 2.7
References
Reference URL | Reference Tags |
---|---|
https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea | Patch Third Party Advisory |
https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4 | Third Party Advisory |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2021-41134 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-41134 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 06:48:12 | Added to TrackCVE | |||
2022-12-05 13:47:54 | 2021-11-03T18:15Z | 2021-11-03T18:15:08 | CVE Published Date | updated |
2022-12-05 13:47:54 | 2021-11-05T17:24:13 | CVE Modified Date | updated | |
2022-12-05 13:47:54 | Analyzed | Vulnerability Status | updated |