CVE-2026-40110
jupyter-server CORS origin validation bypass via unanchored regex in allow_origin_pat
Also known as GHSA-24qx-w28j-9m6p, PYSEC-2026-2187
Mitigation
- Upgrade jupyter-server to 2.18.0 or later.
Who should check
- Projects that depend on PyPI package jupyter-server (< 2.18.0)
- Anyone running jupyter-server jupyter_server <= 2.17.0
Vulnerability facts
- Affected
- jupyter-server < 2.18.0
- Fixed in
- 2.18.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.6 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:L/SC:L/SI:L/SA:LOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: Passive
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: Low
- Confidentiality impact on other systems: Low
- Integrity impact on other systems: Low
- Availability impact on other systems: Low
- EPSS
- 0.47% chance of exploitation in 30 days (percentile 33, 2026-11-26)
- CWE
- CWE-777
- Modified
Description
Jupyter Server is the backend for Jupyter web applications. In versions 2.17.0 and earlier, the Origin header validation uses Python's re.match() to check incoming origins against the allow_origin_pat configuration value. Because re.match() only anchors at the start of the string and does not require a full match, a pattern intended to match only a trusted domain (e.g., trusted.example.com) will also match any origin that begins with that domain followed by additional characters (e.g., trusted.example.com.evil.com). An attacker who controls such a domain can bypass the CORS origin restriction and make cross-origin requests to the Jupyter Server API from an untrusted site. This issue has been fixed in version 2.18.0.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI jupyter-server | < 2.18.0 | 2.18.0 | osv |
| jupyter-server jupyter_server | <= 2.17.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-40110. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-40110.md Affected: jupyter-server < 2.18.0 Fixed in: 2.18.0 Steps: 1. Search this machine and project for jupyter-server (PyPI), jupyter-server jupyter_server: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Other
- https://access.redhat.com/security/cve/CVE-2026-40110
- https://bugzilla.redhat.com/show_bug.cgi?id=2466912
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40110.json
- https://github.com/jupyter-server/jupyter_server
- https://github.com/pypa/advisory-database/tree/main/vulns/jupyter-server/PYSEC-2026-2187.yaml
FAQ
Is CVE-2026-40110 being exploited?
There is no confirmed exploitation: CVE-2026-40110 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.47% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-40110?
High: CVSS 7.6 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-40110?
jupyter-server < 2.18.0.
Is there a fix for CVE-2026-40110?
Yes. Fixed in 2.18.0. Upgrade jupyter-server to 2.18.0 or later.
How do I check if I'm affected by CVE-2026-40110?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.