Advisory

GHSA-5mrq-x3x5-8v8f

Also known as: CVE-2026-40934, PYSEC-2026-69

Summary

Jupyter Server's Authentication Cookies Remain Valid After Password Reset and Server Restart

Details

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

  • Start a Jupyter server with password authentication: jupyter server password, jupyter server
  • Log in with the password and capture the authentication cookie (e.g., just login with a browser).
  • Change the password to revoke access: jupyter server password
  • Restart the server
  • Use the old stolen cookie => remains valid and provides full authenticated access.

Impact

  • All jupyter-server deployments using password authentication where security incidents may occur
  • Multi-user systems where one user's compromised session should be revocable by administrators
  • Shared or public-facing Jupyter servers where credential rotation is a security requirement
  • Any deployment where password changes are expected to revoke existing sessions

Patches

Jupyter Server 2.18+

Workaround

rm ~/.local/share/jupyter/runtime/jupyter_cookie_secret
# Then restart the server

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-05-05 17:03 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

jupyter-server

PyPI · All systems

Affected

  • introduced 0, fixed 2.18.0 (ecosystem)

Fixed versions

2.18.0

Fix

  • Fixed version 2.18.0
    pip install --upgrade jupyter-server==2.18.0

Fix 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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences