CVE-2026-40110jupyter-server CORS origin validation bypass via unanchored regex in allow_origin_pat
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.
What to do
Fixed builds are available from Alpine, Debian, PyPI: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | jupyter-server | Fix pending | UBUNTU-CVE-2026-40110 | |
| Ubuntu 26.04 | jupyter-server | Under investigation | UBUNTU-CVE-2026-40110 | |
| Ubuntu 25.10 | jupyter-server | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-40110 | |
| Ubuntu 24.04 | jupyter-server | Under investigation | UBUNTU-CVE-2026-40110 | |
| Ubuntu 22.04 | jupyter-server | Under investigation | UBUNTU-CVE-2026-40110 | |
| Debian 14 | jupyter-server | Fixed | 2.20.0-1 | DEBIAN-CVE-2026-40110 |
| Debian 13 | jupyter-server | Fix pending | DEBIAN-CVE-2026-40110 | |
| Debian 12 | jupyter-server | Fix pending | DEBIAN-CVE-2026-40110 | |
| Alpine Linux 3.24 | jupyter-server | Fixed | 2.18.2-r0 | ALPINE-CVE-2026-40110 |
| PyPI library | jupyter-server | Fixed | 2.18.0 | PYSEC-2026-2187 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- jupyter-server jupyter_server: affected: <= 2.17.0
References
- https://github.com/jupyter-server/jupyter_server/security/advisories/GHSA-24qx-w28j-9m6p
- https://github.com/jupyter-server/jupyter_server/pull/603
- https://github.com/jupyter-server/jupyter_server/commit/057869a327c46730afede3eab0ca2d2e3e74acea
- https://github.com/jupyter-server/jupyter_server/commit/49b34392feaa97735b3b777e3baf8f22f2a14ed8
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.