jupyter-server
Affected
- introduced
0, fixed2.18.0(ecosystem)
Fixed versions
2.18.0
Fix
- Fixed version
2.18.0pip install --upgrade jupyter-server==2.18.0
Advisory
Also known as: CVE-2026-40934, PYSEC-2026-69
Jupyter Server's Authentication Cookies Remain Valid After Password Reset and Server Restart
Summary
A persistent cookie secret vulnerability allows authenticated users to maintain indefinite access even after password changes.
The cookie secret used to sign authentication cookies is stored in a permanent file (~/.local/share/jupyter/runtime/jupyter_cookie_secret) that is never automatically rotated or cleared, allowing stolen or compromised cookies to remain valid indefinitely regardless of password resets.
PoC
jupyter server password, jupyter serverjupyter server passwordImpact
Patches
Jupyter Server 2.18+
Workaround
rm ~/.local/share/jupyter/runtime/jupyter_cookie_secret
# Then restart the serverHigh Basis: The source's own band: HIGH
0, fixed 2.18.0 (ecosystem)2.18.0
2.18.0pip install --upgrade jupyter-server==2.18.0Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0