GSD-2021-41134
Vulnerability from gsd - Updated: 2023-12-13 01:23Details
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.
Aliases
Aliases
{
"GSD": {
"alias": "CVE-2021-41134",
"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.",
"id": "GSD-2021-41134",
"references": [
"https://www.suse.com/security/cve/CVE-2021-41134.html"
]
},
"gsd": {
"metadata": {
"exploitCode": "unknown",
"remediation": "unknown",
"reportConfidence": "confirmed",
"type": "vulnerability"
},
"osvSchema": {
"aliases": [
"CVE-2021-41134"
],
"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": "GSD-2021-41134",
"modified": "2023-12-13T01:23:26.904566Z",
"schema_version": "1.4.0"
}
},
"namespaces": {
"cve.org": {
"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"
}
},
"gitlab.com": {
"advisories": [
{
"affected_range": "\u003e=1.0.0 \u003c1.1.1||\u003e=2.0.0 \u003c2.1.1",
"affected_versions": "All versions starting from 1.0.0 before 1.1.1, all versions starting from 2.0.0 before 2.1.1",
"cvss_v2": "AV:N/AC:M/Au:S/C:N/I:P/A:N",
"cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
"cwe_ids": [
"CWE-1035",
"CWE-79",
"CWE-937"
],
"date": "2021-11-05",
"description": "nbdime provides tools for diffing and merging of Jupyter Notebooks. 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.",
"fixed_versions": [
"1.1.1",
"2.1.1"
],
"identifier": "CVE-2021-41134",
"identifiers": [
"CVE-2021-41134",
"GHSA-p6rw-44q7-3fw4"
],
"not_impacted": "All versions before 1.0.0, all versions starting from 1.1.1 before 2.0.0, all versions starting from 2.1.1",
"package_slug": "npm/nbdime-jupyterlab",
"pubdate": "2021-11-03",
"solution": "Upgrade to versions 1.1.1, 2.1.1 or above.",
"title": "Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2021-41134",
"https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea",
"https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4"
],
"uuid": "eb0230d8-d2bc-4269-8e3c-2293de1650fb"
},
{
"affected_range": "\u003e=5.0.0 \u003c5.0.2||\u003e=6.0.0 \u003c6.1.2",
"affected_versions": "All versions starting from 5.0.0 before 5.0.2, all versions starting from 6.0.0 before 6.1.2",
"cvss_v2": "AV:N/AC:M/Au:S/C:N/I:P/A:N",
"cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
"cwe_ids": [
"CWE-1035",
"CWE-79",
"CWE-937"
],
"date": "2021-11-05",
"description": "nbdime provides tools for diffing and merging of Jupyter Notebooks. 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.",
"fixed_versions": [
"5.0.2",
"6.1.2"
],
"identifier": "CVE-2021-41134",
"identifiers": [
"CVE-2021-41134",
"GHSA-p6rw-44q7-3fw4"
],
"not_impacted": "All versions before 5.0.0, all versions starting from 5.0.2 before 6.0.0, all versions starting from 6.1.2",
"package_slug": "npm/nbdime",
"pubdate": "2021-11-03",
"solution": "Upgrade to versions 5.0.2, 6.1.2 or above.",
"title": "Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2021-41134",
"https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4"
],
"uuid": "e057bdaf-b4ba-4817-8459-76f79f8357ef"
},
{
"affected_range": "\u003e=1.0.0,\u003c1.1.1||\u003e=2.0.0,\u003c2.1.1||\u003e=3.0.0,\u003c=3.1.1",
"affected_versions": "All versions starting from 1.0.0 before 1.1.1, all versions starting from 2.0.0 before 2.1.1, all versions starting from 3.0.0 up to 3.1.1",
"cvss_v2": "AV:N/AC:M/Au:S/C:N/I:P/A:N",
"cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
"cwe_ids": [
"CWE-1035",
"CWE-79",
"CWE-937"
],
"date": "2021-11-05",
"description": "nbdime provides tools for diffing and merging of Jupyter Notebooks. 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.",
"fixed_versions": [
"1.1.1",
"2.1.1"
],
"identifier": "CVE-2021-41134",
"identifiers": [
"CVE-2021-41134",
"GHSA-p6rw-44q7-3fw4"
],
"not_impacted": "All versions before 1.0.0, all versions starting from 1.1.1 before 2.0.0, all versions starting from 2.1.1 before 3.0.0, all versions after 3.1.1",
"package_slug": "pypi/nbdime",
"pubdate": "2021-11-03",
"solution": "Upgrade to versions 1.1.1, 2.1.1 or above.",
"title": "Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2021-41134",
"https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea",
"https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4"
],
"uuid": "e4b767ec-56aa-4aac-a0a1-32c1849f108b"
}
]
},
"nvd.nist.gov": {
"configurations": {
"CVE_data_version": "4.0",
"nodes": [
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:python:*:*",
"cpe_name": [],
"versionEndExcluding": "1.1.1",
"versionStartIncluding": "1.0.0",
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:python:*:*",
"cpe_name": [],
"versionEndExcluding": "2.1.1",
"versionStartIncluding": "2.0.0",
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:python:*:*",
"cpe_name": [],
"versionEndIncluding": "3.1.1",
"versionStartIncluding": "3.0.0",
"vulnerable": true
}
],
"operator": "OR"
},
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:node.js:*:*",
"cpe_name": [],
"versionEndExcluding": "5.0.2",
"versionStartIncluding": "5.0.0",
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:jupyter:nbdime:*:*:*:*:*:node.js:*:*",
"cpe_name": [],
"versionEndExcluding": "6.1.2",
"versionStartIncluding": "6.0.0",
"vulnerable": true
}
],
"operator": "OR"
},
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:a:jupyter:nbdime-jupyterlab:*:*:*:*:*:node.js:*:*",
"cpe_name": [],
"versionEndExcluding": "1.0.1",
"versionStartIncluding": "1.0.0",
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:jupyter:nbdime-jupyterlab:*:*:*:*:*:node.js:*:*",
"cpe_name": [],
"versionEndExcluding": "2.1.1",
"versionStartIncluding": "2.0.0",
"vulnerable": true
}
],
"operator": "OR"
}
]
},
"cve": {
"CVE_data_meta": {
"ASSIGNER": "security-advisories@github.com",
"ID": "CVE-2021-41134"
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"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."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "en",
"value": "CWE-79"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea",
"refsource": "MISC",
"tags": [
"Patch",
"Third Party Advisory"
],
"url": "https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea"
},
{
"name": "https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4",
"refsource": "CONFIRM",
"tags": [
"Third Party Advisory"
],
"url": "https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4"
}
]
}
},
"impact": {
"baseMetricV2": {
"acInsufInfo": false,
"cvssV2": {
"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,
"severity": "LOW",
"userInteractionRequired": true
},
"baseMetricV3": {
"cvssV3": {
"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
}
},
"lastModifiedDate": "2021-11-05T17:24Z",
"publishedDate": "2021-11-03T18:15Z"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
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.
Loading…
Loading…