Cross-site request forgery via no-cors misclassification
Published May 22, 2026 · Updated May 22, 2026
Cross-site request forgery in Project Jupyter JupyterHub 4.1.0 through 5.4.4 allows remote attackers to submit cross-origin form actions. The _needs_check_xsrf function in jupyterhub/_xsrf_utils.py treats Sec-Fetch-Mode: no-cors as trusted and skips token validation for HTTP form endpoints. A victim must be signed in and visit attacker-controlled content; the forged request can spawn a server without granting access, or accept a share when the attacker is permitted to share.
Summary
What happened
Cross-site request forgery in Project Jupyter JupyterHub 4.1.0 through 5.4.4 allows remote attackers to submit cross-origin form actions. The _needs_check_xsrf function in jupyterhub/_xsrf_utils.py treats Sec-Fetch-Mode: no-cors as trusted and skips token validation for HTTP form endpoints. A victim must be signed in and visit attacker-controlled content; the forged request can spawn a server without granting access, or accept a share when the attacker is permitted to share.
The record
- CVE
- CVE-2026-40864
- Published
- May 22, 2026
- Updated
- May 22, 2026
- Vendor
- Project Jupyter
- Product
- JupyterHub
- Classifications
- CWE-352, T1204.001
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- May 22, 2026CVE publishedPublication date reported by the CVE source.
- May 22, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 4.1.0, < 5.4.5
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- CVE-2026-40864 JupyterHub XSRF bypass proof of conceptproof of concept · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo