CVEfocus › CVE database › CVE-2026-40110

CVE-2026-40110jupyter-server CORS origin validation bypass via unanchored regex in allow_origin_pat

CVSS 7.6 HighEPSS 0.5% (higher than 33% of CVEs)Published 2026-05-05Updated 2026-07-22Assigner: GitHub_M

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.

CWE-625CWE-777

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

3Fixed
3Fix pending
3Under investigation
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10jupyter-serverFix pendingUBUNTU-CVE-2026-40110
Ubuntu 26.04jupyter-serverUnder investigationUBUNTU-CVE-2026-40110
Ubuntu 25.10jupyter-serverWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-40110
Ubuntu 24.04jupyter-serverUnder investigationUBUNTU-CVE-2026-40110
Ubuntu 22.04jupyter-serverUnder investigationUBUNTU-CVE-2026-40110
Debian 14jupyter-serverFixed2.20.0-1DEBIAN-CVE-2026-40110
Debian 13jupyter-serverFix pendingDEBIAN-CVE-2026-40110
Debian 12jupyter-serverFix pendingDEBIAN-CVE-2026-40110
Alpine Linux 3.24jupyter-serverFixed2.18.2-r0ALPINE-CVE-2026-40110
PyPI libraryjupyter-serverFixed2.18.0PYSEC-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.

References

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.