Search

Find a vulnerability

Search criteria

    3 vulnerabilities found for nbdime by jupyter

    FKIE_CVE-2021-41134

    Vulnerability from fkie_nvd - Published: 2021-11-03 18:15 - Updated: 2026-06-17 04:07
    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.

    {
      "affected": [
        {
          "affectedData": [
            {
              "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)"
                }
              ]
            }
          ],
          "source": "security-advisories@github.com"
        }
      ],
      "configurations": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:python:*:*",
                  "matchCriteriaId": "DBCA217C-F72D-4F41-BF33-33BB74D47E09",
                  "versionEndExcluding": "1.1.1",
                  "versionStartIncluding": "1.0.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:python:*:*",
                  "matchCriteriaId": "8B65C129-8C5D-487A-AA5F-265753528C3D",
                  "versionEndExcluding": "2.1.1",
                  "versionStartIncluding": "2.0.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:python:*:*",
                  "matchCriteriaId": "E52B1E1D-7D02-450D-A6C2-80C311D445BC",
                  "versionEndIncluding": "3.1.1",
                  "versionStartIncluding": "3.0.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        },
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:node.js:*:*",
                  "matchCriteriaId": "8D73293E-65C1-467A-9EF9-FD2B2357EC82",
                  "versionEndExcluding": "5.0.2",
                  "versionStartIncluding": "5.0.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:node.js:*:*",
                  "matchCriteriaId": "5F0BD8FE-D4AF-4213-85A6-CF01890A523D",
                  "versionEndExcluding": "6.1.2",
                  "versionStartIncluding": "6.0.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        },
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:a:jupyter:nbdime-jupyterlab:*:*:*:*:*:node.js:*:*",
                  "matchCriteriaId": "F7B26B18-E440-4E73-B79F-0AD6959663B9",
                  "versionEndExcluding": "1.0.1",
                  "versionStartIncluding": "1.0.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:a:jupyter:nbdime-jupyterlab:*:*:*:*:*:node.js:*:*",
                  "matchCriteriaId": "A51E3DDE-50ED-4841-B7DE-DE9674FD883D",
                  "versionEndExcluding": "2.1.1",
                  "versionStartIncluding": "2.0.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "cveTags": [],
      "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."
        },
        {
          "lang": "es",
          "value": "nbdime proporciona herramientas para diferenciar y fusionar cuadernos Jupyter. En las versiones afectadas se presenta un problema de tipo cross-site scripting (XSS) almacenado en el proyecto nbdime, propiedad de Jupyter. Parece que cuando se lee el nombre del archivo y la ruta desde el disco, la extensi\u00f3n no sanea la cadena que construye antes de devolverla para que se muestre. La funci\u00f3n diffNotebookCheckpoint dentro de nbdime causa este problema. Cuando es intentado mostrar el nombre del cuaderno local (diffNotebookCheckpoint), nbdime parece a\u00f1adir simplemente .ipynb al nombre del archivo de entrada. El NbdimeWidget es creado entonces, y la cadena base es pasada mediante la funci\u00f3n API de petici\u00f3n. A partir de ah\u00ed, el frontend simplemente renderiza la etiqueta HTML y todo lo que la acompa\u00f1a. Es recomendado a usuarios aplicar el parche a la versi\u00f3n m\u00e1s reciente del producto afectado"
        }
      ],
      "id": "CVE-2021-41134",
      "lastModified": "2026-06-17T04:07:56.550",
      "metrics": {
        "cvssMetricV2": [
          {
            "acInsufInfo": false,
            "baseSeverity": "LOW",
            "cvssData": {
              "accessComplexity": "MEDIUM",
              "accessVector": "NETWORK",
              "authentication": "SINGLE",
              "availabilityImpact": "NONE",
              "baseScore": 3.5,
              "confidentialityImpact": "NONE",
              "integrityImpact": "PARTIAL",
              "vectorString": "AV:N/AC:M/Au:S/C:N/I:P/A:N",
              "version": "2.0"
            },
            "exploitabilityScore": 6.8,
            "impactScore": 2.9,
            "obtainAllPrivilege": false,
            "obtainOtherPrivilege": false,
            "obtainUserPrivilege": false,
            "source": "nvd@nist.gov",
            "type": "Primary",
            "userInteractionRequired": true
          }
        ],
        "cvssMetricV31": [
          {
            "cvssData": {
              "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"
            },
            "exploitabilityScore": 2.3,
            "impactScore": 5.8,
            "source": "security-advisories@github.com",
            "type": "Secondary"
          },
          {
            "cvssData": {
              "attackComplexity": "LOW",
              "attackVector": "NETWORK",
              "availabilityImpact": "NONE",
              "baseScore": 5.4,
              "baseSeverity": "MEDIUM",
              "confidentialityImpact": "LOW",
              "integrityImpact": "LOW",
              "privilegesRequired": "LOW",
              "scope": "CHANGED",
              "userInteraction": "REQUIRED",
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
              "version": "3.1"
            },
            "exploitabilityScore": 2.3,
            "impactScore": 2.7,
            "source": "nvd@nist.gov",
            "type": "Primary"
          }
        ]
      },
      "published": "2021-11-03T18:15:08.350",
      "references": [
        {
          "source": "security-advisories@github.com",
          "tags": [
            "Patch",
            "Third Party Advisory"
          ],
          "url": "https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea"
        },
        {
          "source": "security-advisories@github.com",
          "tags": [
            "Third Party Advisory"
          ],
          "url": "https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4"
        },
        {
          "source": "af854a3a-2127-422b-91ae-364da2661108",
          "tags": [
            "Patch",
            "Third Party Advisory"
          ],
          "url": "https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea"
        },
        {
          "source": "af854a3a-2127-422b-91ae-364da2661108",
          "tags": [
            "Third Party Advisory"
          ],
          "url": "https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4"
        }
      ],
      "sourceIdentifier": "security-advisories@github.com",
      "vulnStatus": "Modified",
      "weaknesses": [
        {
          "description": [
            {
              "lang": "en",
              "value": "CWE-79"
            }
          ],
          "source": "security-advisories@github.com",
          "type": "Secondary"
        }
      ]
    }

    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
    GitHub_M CNA under the mitre root
    CNA scorecard C 72/100 over 7832 records in the last 180 days details
    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
    GitHub_M CNA under the mitre root
    CNA scorecard C 72/100 over 7832 records in the last 180 days details
    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"
    }