{"id":"GHSA-p6rw-44q7-3fw4","summary":"Stored XSS in Jupyter nbdime","details":"### Impact\n\nImproper handling of user controlled input caused a stored cross-site scripting (XSS) vulnerability. All previous versions of nbdime are affected.\n\n### Patches\n\nSecurity patches will be released for each of the major versions of the nbdime packages since version 1.x of the nbdime python package.\n\n#### Python\n- nbdime 1.x: Patched in v. 1.1.1\n- nbdime 2.x: Patched in v. 2.1.1\n- nbdime 3.x: Patched in v. 3.1.1\n\n#### npm\n- nbdime 6.x version: Patched in 6.1.2\n- nbdime 5.x version: Patched in 5.0.2\n- nbdime-jupyterlab 1.x version: Patched in 1.0.1\n- nbdime-jupyterlab 2.x version: Patched in 2.1.1\n\n### For more information\nIf you have any questions or comments about this advisory email us at [security@ipython.org](mailto:security@ipython.org).\n\n\n","aliases":["CVE-2021-41134","PYSEC-2021-428"],"modified":"2026-07-08T06:27:23.429525263Z","published":"2021-11-08T18:09:27Z","database_specific":{"nvd_published_at":"2021-11-03T18:15:00Z","cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2021-11-03T18:13:40Z"},"references":[{"type":"WEB","url":"https://github.com/jupyter/nbdime/security/advisories/GHSA-p6rw-44q7-3fw4"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41134"},{"type":"WEB","url":"https://github.com/jupyter/nbdime/commit/e44a5cc7677f24b45ebafc756db49058c2f750ea"},{"type":"PACKAGE","url":"https://github.com/jupyter/nbdime"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/nbdime/PYSEC-2021-428.yaml"}],"affected":[{"package":{"name":"nbdime","ecosystem":"PyPI","purl":"pkg:pypi/nbdime"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.1"}]}],"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"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/11/GHSA-p6rw-44q7-3fw4/GHSA-p6rw-44q7-3fw4.json"}},{"package":{"name":"nbdime","ecosystem":"PyPI","purl":"pkg:pypi/nbdime"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.1.1"}]}],"versions":["2.0.0","2.1.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/11/GHSA-p6rw-44q7-3fw4/GHSA-p6rw-44q7-3fw4.json"}},{"package":{"name":"nbdime","ecosystem":"PyPI","purl":"pkg:pypi/nbdime"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"3.1.1"}]}],"versions":["3.0.0","3.1.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/11/GHSA-p6rw-44q7-3fw4/GHSA-p6rw-44q7-3fw4.json"}},{"package":{"name":"nbdime","ecosystem":"npm","purl":"pkg:npm/nbdime"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.0.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/11/GHSA-p6rw-44q7-3fw4/GHSA-p6rw-44q7-3fw4.json"}},{"package":{"name":"nbdime","ecosystem":"npm","purl":"pkg:npm/nbdime"},"ranges":[{"type":"SEMVER","events":[{"introduced":"6.0.0"},{"fixed":"6.1.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/11/GHSA-p6rw-44q7-3fw4/GHSA-p6rw-44q7-3fw4.json"}},{"package":{"name":"nbdime-jupyterlab","ecosystem":"npm","purl":"pkg:npm/nbdime-jupyterlab"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/11/GHSA-p6rw-44q7-3fw4/GHSA-p6rw-44q7-3fw4.json"}},{"package":{"name":"nbdime-jupyterlab","ecosystem":"npm","purl":"pkg:npm/nbdime-jupyterlab"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.1.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/11/GHSA-p6rw-44q7-3fw4/GHSA-p6rw-44q7-3fw4.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N"}]}