# CVE-2026-40934: jupyter-server authentication cookies remain valid after password reset due to static cookie secret

- Severity: High 7.6 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-05T17:03:24.000Z
- Modified: 2026-09-10T03:50:45.692Z
- Also known as: GHSA-5mrq-x3x5-8v8f, PYSEC-2026-69
- Weaknesses: CWE-613
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Jupyter Server is the backend for Jupyter web applications. In versions 2.17.0 and earlier, the secret used to sign authentication cookies is persisted to a static file at ~/.local/share/jupyter/runtime/jupyter_cookie_secret and is never rotated when a user changes their password. After a password reset and server restart, any previously issued authentication cookie remains cryptographically valid because the signing key has not changed. An attacker who has captured a session cookie through any means retains full authenticated access to the server regardless of subsequent password changes. This affects deployments using password-based authentication, particularly shared or public-facing servers where credential rotation is expected to revoke existing sessions. This issue has been fixed in version 2.18.0.

(As written by CVE List.)

## Affected

- jupyter-server jupyter_server: < 2.18.0
- jupyter-server (PyPI): before 2.18.0
- jupyter jupyter_server: before 2.18.0

## Every score

- GitHub_M: CVSS:4.0 7.6 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:3.1 6.8 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/jupyter-server/jupyter_server/security/advisories/GHSA-5mrq-x3x5-8v8f> (exploit, evidence, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40934> (advisory)
- <https://github.com/jupyter-server/jupyter_server> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/jupyter-server/PYSEC-2026-69.yaml> (web)

## Sources

- CVE List: [CVE-2026-40934](https://www.cve.org/CVERecord?id=CVE-2026-40934), CVE Terms of Use, modified 2026-05-07
- GitHub Advisory Database: [GHSA-5mrq-x3x5-8v8f](https://github.com/advisories/GHSA-5mrq-x3x5-8v8f), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-40934](https://nvd.nist.gov/vuln/detail/CVE-2026-40934), Public domain, modified 2026-07-25
- PyPA Advisory Database: [PYSEC-2026-69](https://osv.dev/vulnerability/PYSEC-2026-69), CC-BY-4.0, modified 2026-05-20

---

Page: https://cve.day/CVE-2026-40934 · Whole record: https://cve.day/CVE-2026-40934.json · Rebuilt by cve.day 2026-11-25T22:59:20.651Z
