# CVE-2021-39159: Remote code execution in Binderhub

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.6 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 0.2.0-n653 (CNA); fix release not confirmed
- Status: published
- Published: 2021-08-25 · Modified: 2024-08-04
- Aliases: GHSA-9jjr-qqfp-ppwx, PYSEC-2021-371
- Record: https://cvemate.com/vulnerability/CVE-2021-39159 · JSON: https://cvemate.com/vulnerability/CVE-2021-39159/json

## Description

```text
BinderHub is a kubernetes-based cloud service that allows users to share reproducible interactive computing environments from code repositories. In affected versions a remote code execution vulnerability has been identified in BinderHub, where providing BinderHub with maliciously crafted input could execute code in the BinderHub context, with the potential to egress credentials of the BinderHub deployment, including JupyterHub API tokens, kubernetes service accounts, and docker registry credentials. This may provide the ability to manipulate images and other user created pods in the deployment, with the potential to escalate to the host depending on the underlying kubernetes configuration. Users are advised to update to version 0.2.0-n653. If users are unable to update they may disable the git repo provider by specifying the `BinderHub.repo_providers` as a workaround.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.928%, percentile 80.683%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- jupyter binderhub: \< 0.2.0-n653
- jupyterhub binderhub: \< 0.2.0-n653
- PyPI binderhub (PyPI): \< 0.2.0 \| \< 195caac172690456dcdc8cc7a6ca50e05abf8182.patch \| \< 0.2.0-n653

## References

- <https://github.com/jupyterhub/binderhub/security/advisories/GHSA-9jjr-qqfp-ppwx>
- <https://github.com/jupyterhub/binderhub/commit/195caac172690456dcdc8cc7a6ca50e05abf8182.patch>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-39159>
- <https://github.com/jupyterhub/binderhub/commit/195caac172690456dcdc8cc7a6ca50e05abf8182>
- <https://github.com/jupyterhub/binderhub>
- <https://github.com/pypa/advisory-database/tree/main/vulns/binderhub/PYSEC-2021-371.yaml>

---

Data as of 2026-12-05T10:32:56.577Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
