Jupyter server Token bruteforcing
High7.1CVE-2022-29241 · Published Jun 16, 2022 · updated Sep 10, 2026
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| jupyter-server PyPI | < 1.17.1 | 1.17.1 |
| >= 2.0.0a0, < 2.0.0a1 | 2.0.0a1 |
Details and references
Affects: Notebook and Lab between 6.4.0?(potentially earlier) and 6.4.11 (currently latest). Jupyter Server <=1.16.0. If I am correct about the responsible code it will affect Jupyter-Server 1.17.0 and 2.0.0a0 as well. Description: If notebook server is started with a value of `root_dir` that contains the starting user's home directory, then the underlying REST API can be used to leak the access token assigned at start time by guessing/brute forcing the PID of the jupyter server. While this requires an authenticated user session, this url can be used from an xss payload (as in CVE-2021-32798) or from a hooked or otherwise compromised browser to leak this access token to a malicious third party. This token can be used along with the REST API to interact with Jupyter services/notebooks such as modifying or overwriting critical files, such as .bashrc or .ssh/authorized_keys, allowing a malicious user to read potentially sensitive data and possibly gain control of the impacted system.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
- Severity from
- GitHub (reviewed advisory)
- Also known as
- CVE-2022-29241, PYSEC-2022-211
- github.com/jupyter-server/jupyter_server/security/advisories/GHSA-q874-g24w-4q9g
- nvd.nist.gov/vuln/detail/CVE-2022-29241
- github.com/jupyter-server/jupyter_server/commit/3485007abbb459585357212dcaa20521989272e8
- github.com/jupyter-server/jupyter_server/commit/877da10cd0d7ae45f8b1e385fa1f5a335e7adf1f
- github.com/jupyter-server/jupyter_server
- github.com/pypa/advisory-database/tree/main/vulns/jupyter-server/PYSEC-2022-211.yaml
More Jupyter advisories
All Jupyter| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Jun 162022 | Token bruteforcing. CVE-2022-29238Medium4.3fixed in 6.4.12 | Medium4.3 | 6.4.12 |
| May 242022 | Cross-Site Request Forgery in JupyterHub CVE-2020-36191Medium4.5fixed in 1.2.0b1 | Medium4.5 | 1.2.0b1 |
| May 172022 | Improper Input Validation in Jupyter Notebook CVE-2015-7337Critical9.8fixed in 4.0.5 | Critical9.8 | 4.0.5 |
| May 142022 | Improper Neutralization of Input During Web Page Generation in Jupyter Notebook CVE-2015-6938Medium6.1fixed in 4.0.5 | Medium6.1 | 4.0.5 |
| May 142022 | Improper Neutralization of Input During Web Page Generation in Jupyter Notebook CVE-2019-9644Medium5.4fixed in 5.7.6 | Medium5.4 | 5.7.6 |
| Aug 102022 | nbconvert vulnerable to cross-site scripting (XSS) via multiple exploit paths CVE-2021-32862Medium5.4fixed in 6.5.1 | Medium5.4 | 6.5.1 |