# CVE-2021-39160: Code injection in nbgitpuller

- Severity: Critical 9.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.73%, higher than 78% of CVEs (2026-12-01)
- Published: 2021-08-25T18:10:11.000Z
- Modified: 2026-07-08T06:28:22.586Z
- Also known as: GHSA-mq5p-2mcr-m52j, PYSEC-2021-315
- Weaknesses: CWE-78, CWE-94
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- jupyterhub nbgitpuller: >= 0.9.0, < 0.10.2; from 0.9.0 before 0.10.2
- nbgitpuller (PyPI): from 0.9.0 before 0.10.2; before 07690644f29a566011dd0d7ba14cae3eb0490481

## Every score

- GitHub_M: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/jupyterhub/nbgitpuller/security/advisories/GHSA-mq5p-2mcr-m52j> (advisory, third-party-advisory, web)
- <https://github.com/jupyterhub/nbgitpuller/commit/07690644f29a566011dd0d7ba14cae3eb0490481> (fix, patch, third-party-advisory, web)
- <https://github.com/jupyterhub/nbgitpuller/blob/main/CHANGELOG.md#0102---2021-08-25> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-39160> (advisory)
- <https://github.com/jupyterhub/nbgitpuller> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/nbgitpuller/PYSEC-2021-315.yaml> (web)

## Sources

- CVE List: [CVE-2021-39160](https://www.cve.org/CVERecord?id=CVE-2021-39160), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-mq5p-2mcr-m52j](https://github.com/advisories/GHSA-mq5p-2mcr-m52j), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-39160](https://nvd.nist.gov/vuln/detail/CVE-2021-39160), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-315](https://osv.dev/vulnerability/PYSEC-2021-315), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-39160 · Whole record: https://cve.day/CVE-2021-39160.json · Rebuilt by cve.day 2026-11-25T22:58:03.491Z
