PYSEC-2021-428
Vulnerability from pysec - Published: 2021-11-03 18:15 - Updated: 2021-11-16 21:20nbdime 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.
| Name | purl | nbdime | pkg:pypi/nbdime |
|---|
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "nbdime",
"purl": "pkg:pypi/nbdime"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "e44a5cc7677f24b45ebafc756db49058c2f750ea"
}
],
"repo": "https://github.com/jupyter/nbdime",
"type": "GIT"
},
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.1.1"
},
{
"introduced": "2.0.0"
},
{
"fixed": "2.1.1"
},
{
"introduced": "3.0.0"
},
{
"fixed": "3.1.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.1.0",
"0.1.0.dev",
"0.1.0b1",
"0.1.1",
"0.1.2",
"0.2.0",
"0.3.0",
"0.4.0",
"0.4.1",
"1.0.0",
"1.0.0rc0",
"1.0.0rc1",
"1.0.1",
"1.0.2",
"1.0.3",
"1.0.4",
"1.0.5",
"1.0.6",
"1.0.7",
"1.1.0",
"2.0.0",
"2.1.0",
"3.0.0",
"3.1.0"
]
}
],
"aliases": [
"CVE-2021-41134",
"GHSA-p6rw-44q7-3fw4"
],
"details": "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.",
"id": "PYSEC-2021-428",
"modified": "2021-11-16T21:20:29.137127Z",
"published": "2021-11-03T18:15:00Z",
"references": [
{
"type": "FIX",
"url": "https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea"
},
{
"type": "ADVISORY",
"url": "https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4"
}
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.