{"id":"GHSA-mq5p-2mcr-m52j","summary":"Code injection in nbgitpuller","details":"### Impact\n\nDue to an unsanitized input, visiting maliciously crafted links could result in arbitrary code execution in the user environment.\n\n### Patches\n\n0.10.2\n\n### Workarounds\n\nNone, other than upgrade to 0.10.2 or downgrade to 0.8.x.\n\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n* Open an issue in [nbgitpuller](https://github.com/jupyterhub/nbgitpuller/issues)\n* Email our security team at [security@ipython.org](mailto:security@ipython.org)\n","aliases":["CVE-2021-39160","PYSEC-2021-315"],"modified":"2026-07-08T06:28:22.586401887Z","published":"2021-08-30T16:17:06Z","database_specific":{"cwe_ids":["CWE-78","CWE-94"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2021-08-25T15:10:01Z","nvd_published_at":"2021-08-25T18:15:00Z"},"references":[{"type":"WEB","url":"https://github.com/jupyterhub/nbgitpuller/security/advisories/GHSA-mq5p-2mcr-m52j"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-39160"},{"type":"WEB","url":"https://github.com/jupyterhub/nbgitpuller/commit/07690644f29a566011dd0d7ba14cae3eb0490481"},{"type":"PACKAGE","url":"https://github.com/jupyterhub/nbgitpuller"},{"type":"WEB","url":"https://github.com/jupyterhub/nbgitpuller/blob/main/CHANGELOG.md#0102---2021-08-25"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/nbgitpuller/PYSEC-2021-315.yaml"}],"affected":[{"package":{"name":"nbgitpuller","ecosystem":"PyPI","purl":"pkg:pypi/nbgitpuller"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.9.0"},{"fixed":"0.10.2"}]}],"versions":["0.10.0","0.10.1","0.9.0"],"database_specific":{"last_known_affected_version_range":"\u003c= 0.10.1","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-mq5p-2mcr-m52j/GHSA-mq5p-2mcr-m52j.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}