{"id":"CVE-2021-39160","aliases":["CVE-2021-39160","GHSA-mq5p-2mcr-m52j","PYSEC-2021-315"],"related":[],"kind":"vulnerability","state":"published","title":"Code injection in nbgitpuller","summary":"nbgitpuller is a Jupyter server extension to sync a git repository one-way to a local path. Due to unsanitized input, visiting maliciously crafted links could result in arbitrary code execution in the user environment. This has been resolved in version 0.10.2 and all users are advised to upgrade. No work around exist for users who can not upgrade.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"nbgitpuller is a Jupyter server extension to sync a git repository one-way to a local path. Due to unsanitized input, visiting maliciously crafted links could result in arbitrary code execution in the user environment. This has been resolved in version 0.10.2 and all users are advised to upgrade. No work around exist for users who can not upgrade.","source":"cvelist"},{"lang":"en","text":"### 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)","format":"markdown","source":"ghsa"},{"lang":"es","text":"nbgitpuller es una extensión del servidor Jupyter para sincronizar un repositorio git de forma unidireccional a una ruta local. Debido a una entrada no saneada, visitar enlaces maliciosamente diseñados podría resultar en una ejecución de código arbitrario en el entorno del usuario. Esto ha sido resuelto en la versión 0.10.2 y se recomienda a todos los usuarios que actualicen. No se presenta ninguna solución para usuarios que no puedan actualizar.","source":"nvd"}],"published":"2021-08-25T18:10:11.000Z","modified":"2026-07-08T06:28:22.586Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":9.6,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":9.6,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-78","CWE-94"],"affected":[{"ranges":[{"version":">= 0.9.0, < 0.10.2","status":"affected"}],"vendor":"jupyterhub","product":"nbgitpuller","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0.9.0","status":"affected","fixed":"0.10.2"}],"ecosystem":"PyPI","package":"nbgitpuller","purl":"pkg:pypi/nbgitpuller","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"0.9.0","fixed":"0.10.2"}],"vendor":"jupyterhub","product":"nbgitpuller","cpe":"cpe:2.3:a:jupyterhub:nbgitpuller:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"07690644f29a566011dd0d7ba14cae3eb0490481"},{"type":"ecosystem","introduced":"0.9.0","status":"affected","fixed":"0.10.2"}],"ecosystem":"PyPI","package":"nbgitpuller","purl":"pkg:pypi/nbgitpuller","repo":"https://github.com/jupyterhub/nbgitpuller","source":"pysec"}],"references":[{"url":"https://github.com/jupyterhub/nbgitpuller/security/advisories/GHSA-mq5p-2mcr-m52j","tags":["advisory","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/jupyterhub/nbgitpuller/commit/07690644f29a566011dd0d7ba14cae3eb0490481","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/jupyterhub/nbgitpuller/blob/main/CHANGELOG.md#0102---2021-08-25","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-39160","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/jupyterhub/nbgitpuller","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/nbgitpuller/PYSEC-2021-315.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-39160","url":"https://www.cve.org/CVERecord?id=CVE-2021-39160","licence":"CVE Terms of Use","modified":"2024-08-04T01:58:18.218Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mq5p-2mcr-m52j","url":"https://github.com/advisories/GHSA-mq5p-2mcr-m52j","licence":"CC-BY-4.0","modified":"2026-07-08T06:28:22.586Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-39160","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-39160","licence":"Public domain","modified":"2026-06-17T04:03:13.217Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-315","url":"https://osv.dev/vulnerability/PYSEC-2021-315","licence":"CC-BY-4.0","modified":"2023-11-08T04:06:31.649Z"}],"updatedAt":"2026-11-25T22:58:03.491Z","epss":{"score":0.0173,"percentile":0.78287,"date":"2026-12-01T12:00:22.000Z"}}