Lucene search

K
cvelistGitHub_MCVELIST:CVE-2021-41134
HistoryNov 03, 2021 - 5:50 p.m.

CVE-2021-41134 Stored XSS in Jupyter nbdime

2021-11-0317:50:10
CWE-79
GitHub_M
www.cve.org
3
jupyter
nbdime
stored xss

CVSS3

8.7

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

AI Score

8.1

Confidence

High

EPSS

0.001

Percentile

19.4%

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.

CNA Affected

[
  {
    "product": "nbdime",
    "vendor": "jupyter",
    "versions": [
      {
        "status": "affected",
        "version": "< 1.1.1 - nbdime (pip)"
      },
      {
        "status": "affected",
        "version": ">= 2.0.0 , < 2.1.1 - nbdime (pip)"
      },
      {
        "status": "affected",
        "version": ">= 3.0.0, < 3.1.1 - nbdime (pip)"
      },
      {
        "status": "affected",
        "version": "< 5.0.2 - nbdime (npm)"
      },
      {
        "status": "affected",
        "version": ">= 6.0.0, < 6.1.2 - nbdime (npm)"
      },
      {
        "status": "affected",
        "version": "< 1.0.1 - nbdime-jupyterlab (npm)"
      },
      {
        "status": "affected",
        "version": ">= 2.0.0, < 2.1.1 - nbdime-jupyterlab (npm)"
      }
    ]
  }
]

CVSS3

8.7

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

AI Score

8.1

Confidence

High

EPSS

0.001

Percentile

19.4%

Related for CVELIST:CVE-2021-41134