Skip to content
JupyterGHSA-q874-g24w-4q9g

Jupyter server Token bruteforcing

High7.1CVE-2022-29241 · Published Jun 16, 2022 · updated Sep 10, 2026

GitHub advisory

Affected versions

PackageAffectedFixed in
jupyter-server
PyPI
< 1.17.11.17.1
>= 2.0.0a0, < 2.0.0a12.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

More Jupyter advisories

All Jupyter
DateAdvisory
Jun 162022Token bruteforcing.
CVE-2022-29238Medium4.3fixed in 6.4.12
May 242022Cross-Site Request Forgery in JupyterHub
CVE-2020-36191Medium4.5fixed in 1.2.0b1
May 172022Improper Input Validation in Jupyter Notebook
CVE-2015-7337Critical9.8fixed in 4.0.5
May 142022Improper Neutralization of Input During Web Page Generation in Jupyter Notebook
CVE-2015-6938Medium6.1fixed in 4.0.5
May 142022Improper Neutralization of Input During Web Page Generation in Jupyter Notebook
CVE-2019-9644Medium5.4fixed in 5.7.6
Aug 102022nbconvert vulnerable to cross-site scripting (XSS) via multiple exploit paths
CVE-2021-32862Medium5.4fixed in 6.5.1

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.