Insufficient Session Expiration Affecting jupyter-server package, versions [,2.18.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.31% (23rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-JUPYTERSERVER-16425696
  • published6 May 2026
  • disclosed5 May 2026
  • creditUnknown

Introduced: 5 May 2026

CVE-2026-40934  (opens in a new tab)
CWE-613  (opens in a new tab)

How to fix?

Upgrade jupyter-server to version 2.18.0 or higher.

Overview

Affected versions of this package are vulnerable to Insufficient Session Expiration due to jupyter_cookie_secret never being automatically rotated or cleared. An attacker can keep or reuse authenticated session cookies after a password change by presenting a cookie signed with a secret that does not incorporate the current password. This lets the attacker retain access to the server as the affected user, exposing notebooks, files, and other authenticated server resources.

Workarounds

  • Remove ~/.local/share/jupyter/runtime/jupyter_cookie_secret and restart the Jupyter server to invalidate existing authentication cookies, preventing stolen or old cookies from remaining valid after a password change.

CVSS Base Scores

version 4.0
version 3.1