Search

Find a vulnerability

Search criteria

    2 vulnerabilities found for nbdime-jupyterlab by jupyter

    CVE-2021-41134 (GCVE-0-2021-41134)

    Vulnerability from nvd – Published: 2021-11-03 17:50 – Updated: 2024-08-04 02:59
    VLAI
    Title
    Stored XSS in Jupyter nbdime
    Summary
    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.
    CWE
    • CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
    Assigner
    References
    Impacted products
    Vendor Product Version
    jupyter nbdime Affected: < 1.1.1 - nbdime (pip)
    Affected: >= 2.0.0 , < 2.1.1 - nbdime (pip)
    Affected: >= 3.0.0, < 3.1.1 - nbdime (pip)
    Affected: < 5.0.2 - nbdime (npm)
    Affected: >= 6.0.0, < 6.1.2 - nbdime (npm)
    Affected: < 1.0.1 - nbdime-jupyterlab (npm)
    Affected: >= 2.0.0, < 2.1.1 - nbdime-jupyterlab (npm)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2024-08-04T02:59:31.698Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "tags": [
                  "x_refsource_CONFIRM",
                  "x_transferred"
                ],
                "url": "https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4"
              },
              {
                "tags": [
                  "x_refsource_MISC",
                  "x_transferred"
                ],
                "url": "https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea"
              }
            ],
            "title": "CVE Program Container"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "nbdime",
              "vendor": "jupyter",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 1.1.1 - nbdime (pip)"
                },
                {
                  "status": "affected",
                  "version": "\u003e= 2.0.0 , \u003c 2.1.1 - nbdime (pip)"
                },
                {
                  "status": "affected",
                  "version": "\u003e= 3.0.0, \u003c 3.1.1 - nbdime (pip)"
                },
                {
                  "status": "affected",
                  "version": "\u003c 5.0.2 - nbdime (npm)"
                },
                {
                  "status": "affected",
                  "version": "\u003e= 6.0.0, \u003c 6.1.2 - nbdime (npm)"
                },
                {
                  "status": "affected",
                  "version": "\u003c 1.0.1 - nbdime-jupyterlab (npm)"
                },
                {
                  "status": "affected",
                  "version": "\u003e= 2.0.0, \u003c 2.1.1 - nbdime-jupyterlab (npm)"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "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."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "NONE",
                "baseScore": 8.7,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "CHANGED",
                "userInteraction": "REQUIRED",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N",
                "version": "3.1"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-79",
                  "description": "CWE-79: Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2021-11-03T17:50:10.000Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4"
            },
            {
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea"
            }
          ],
          "source": {
            "advisory": "GHSA-p6rw-44q7-3fw4",
            "discovery": "UNKNOWN"
          },
          "title": "Stored XSS in Jupyter nbdime",
          "x_legacyV4Record": {
            "CVE_data_meta": {
              "ASSIGNER": "security-advisories@github.com",
              "ID": "CVE-2021-41134",
              "STATE": "PUBLIC",
              "TITLE": "Stored XSS in Jupyter nbdime"
            },
            "affects": {
              "vendor": {
                "vendor_data": [
                  {
                    "product": {
                      "product_data": [
                        {
                          "product_name": "nbdime",
                          "version": {
                            "version_data": [
                              {
                                "version_value": "\u003c 1.1.1 - nbdime (pip)"
                              },
                              {
                                "version_value": "\u003e= 2.0.0 , \u003c 2.1.1 - nbdime (pip)"
                              },
                              {
                                "version_value": "\u003e= 3.0.0, \u003c 3.1.1 - nbdime (pip)"
                              },
                              {
                                "version_value": "\u003c 5.0.2 - nbdime (npm)"
                              },
                              {
                                "version_value": "\u003e= 6.0.0, \u003c 6.1.2 - nbdime (npm)"
                              },
                              {
                                "version_value": "\u003c 1.0.1 - nbdime-jupyterlab (npm)"
                              },
                              {
                                "version_value": "\u003e= 2.0.0, \u003c 2.1.1 - nbdime-jupyterlab (npm)"
                              }
                            ]
                          }
                        }
                      ]
                    },
                    "vendor_name": "jupyter"
                  }
                ]
              }
            },
            "data_format": "MITRE",
            "data_type": "CVE",
            "data_version": "4.0",
            "description": {
              "description_data": [
                {
                  "lang": "eng",
                  "value": "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."
                }
              ]
            },
            "impact": {
              "cvss": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "NONE",
                "baseScore": 8.7,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "CHANGED",
                "userInteraction": "REQUIRED",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N",
                "version": "3.1"
              }
            },
            "problemtype": {
              "problemtype_data": [
                {
                  "description": [
                    {
                      "lang": "eng",
                      "value": "CWE-79: Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"
                    }
                  ]
                }
              ]
            },
            "references": {
              "reference_data": [
                {
                  "name": "https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4",
                  "refsource": "CONFIRM",
                  "url": "https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4"
                },
                {
                  "name": "https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea",
                  "refsource": "MISC",
                  "url": "https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea"
                }
              ]
            },
            "source": {
              "advisory": "GHSA-p6rw-44q7-3fw4",
              "discovery": "UNKNOWN"
            }
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2021-41134",
        "datePublished": "2021-11-03T17:50:10.000Z",
        "dateReserved": "2021-09-15T00:00:00.000Z",
        "dateUpdated": "2024-08-04T02:59:31.698Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }

    CVE-2021-41134 (GCVE-0-2021-41134)

    Vulnerability from cvelistv5 – Published: 2021-11-03 17:50 – Updated: 2024-08-04 02:59
    VLAI
    Title
    Stored XSS in Jupyter nbdime
    Summary
    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.
    CWE
    • CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
    Assigner
    References
    Impacted products
    Vendor Product Version
    jupyter nbdime Affected: < 1.1.1 - nbdime (pip)
    Affected: >= 2.0.0 , < 2.1.1 - nbdime (pip)
    Affected: >= 3.0.0, < 3.1.1 - nbdime (pip)
    Affected: < 5.0.2 - nbdime (npm)
    Affected: >= 6.0.0, < 6.1.2 - nbdime (npm)
    Affected: < 1.0.1 - nbdime-jupyterlab (npm)
    Affected: >= 2.0.0, < 2.1.1 - nbdime-jupyterlab (npm)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2024-08-04T02:59:31.698Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "tags": [
                  "x_refsource_CONFIRM",
                  "x_transferred"
                ],
                "url": "https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4"
              },
              {
                "tags": [
                  "x_refsource_MISC",
                  "x_transferred"
                ],
                "url": "https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea"
              }
            ],
            "title": "CVE Program Container"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "nbdime",
              "vendor": "jupyter",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 1.1.1 - nbdime (pip)"
                },
                {
                  "status": "affected",
                  "version": "\u003e= 2.0.0 , \u003c 2.1.1 - nbdime (pip)"
                },
                {
                  "status": "affected",
                  "version": "\u003e= 3.0.0, \u003c 3.1.1 - nbdime (pip)"
                },
                {
                  "status": "affected",
                  "version": "\u003c 5.0.2 - nbdime (npm)"
                },
                {
                  "status": "affected",
                  "version": "\u003e= 6.0.0, \u003c 6.1.2 - nbdime (npm)"
                },
                {
                  "status": "affected",
                  "version": "\u003c 1.0.1 - nbdime-jupyterlab (npm)"
                },
                {
                  "status": "affected",
                  "version": "\u003e= 2.0.0, \u003c 2.1.1 - nbdime-jupyterlab (npm)"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "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."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "NONE",
                "baseScore": 8.7,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "CHANGED",
                "userInteraction": "REQUIRED",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N",
                "version": "3.1"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-79",
                  "description": "CWE-79: Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2021-11-03T17:50:10.000Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4"
            },
            {
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea"
            }
          ],
          "source": {
            "advisory": "GHSA-p6rw-44q7-3fw4",
            "discovery": "UNKNOWN"
          },
          "title": "Stored XSS in Jupyter nbdime",
          "x_legacyV4Record": {
            "CVE_data_meta": {
              "ASSIGNER": "security-advisories@github.com",
              "ID": "CVE-2021-41134",
              "STATE": "PUBLIC",
              "TITLE": "Stored XSS in Jupyter nbdime"
            },
            "affects": {
              "vendor": {
                "vendor_data": [
                  {
                    "product": {
                      "product_data": [
                        {
                          "product_name": "nbdime",
                          "version": {
                            "version_data": [
                              {
                                "version_value": "\u003c 1.1.1 - nbdime (pip)"
                              },
                              {
                                "version_value": "\u003e= 2.0.0 , \u003c 2.1.1 - nbdime (pip)"
                              },
                              {
                                "version_value": "\u003e= 3.0.0, \u003c 3.1.1 - nbdime (pip)"
                              },
                              {
                                "version_value": "\u003c 5.0.2 - nbdime (npm)"
                              },
                              {
                                "version_value": "\u003e= 6.0.0, \u003c 6.1.2 - nbdime (npm)"
                              },
                              {
                                "version_value": "\u003c 1.0.1 - nbdime-jupyterlab (npm)"
                              },
                              {
                                "version_value": "\u003e= 2.0.0, \u003c 2.1.1 - nbdime-jupyterlab (npm)"
                              }
                            ]
                          }
                        }
                      ]
                    },
                    "vendor_name": "jupyter"
                  }
                ]
              }
            },
            "data_format": "MITRE",
            "data_type": "CVE",
            "data_version": "4.0",
            "description": {
              "description_data": [
                {
                  "lang": "eng",
                  "value": "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."
                }
              ]
            },
            "impact": {
              "cvss": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "NONE",
                "baseScore": 8.7,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "CHANGED",
                "userInteraction": "REQUIRED",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N",
                "version": "3.1"
              }
            },
            "problemtype": {
              "problemtype_data": [
                {
                  "description": [
                    {
                      "lang": "eng",
                      "value": "CWE-79: Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"
                    }
                  ]
                }
              ]
            },
            "references": {
              "reference_data": [
                {
                  "name": "https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4",
                  "refsource": "CONFIRM",
                  "url": "https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4"
                },
                {
                  "name": "https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea",
                  "refsource": "MISC",
                  "url": "https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea"
                }
              ]
            },
            "source": {
              "advisory": "GHSA-p6rw-44q7-3fw4",
              "discovery": "UNKNOWN"
            }
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2021-41134",
        "datePublished": "2021-11-03T17:50:10.000Z",
        "dateReserved": "2021-09-15T00:00:00.000Z",
        "dateUpdated": "2024-08-04T02:59:31.698Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }