CVEfocus › CVE database › CVE-2026-6657

CVE-2026-6657CORS Origin Validation Bypass in jupyter-server

CVSS 6.1 MediumEPSS 0.3% (higher than 12% of CVEs)Published 2026-06-03Updated 2026-06-03Assigner: @huntr_ai

A vulnerability in jupyter-server versions 1.12.0 through 2.17.0 allows an attacker to bypass CORS origin validation when the `allow_origin_pat` configuration is used. The issue arises from the use of `re.match()` for validating the `Origin` header, which only anchors at the start of the string. This allows attacker-controlled domains such as `trusted.example.com.evil.com` to pass validation against patterns intended to match `trusted.example.com`. The vulnerability affects multiple locations in the codebase, including CORS headers, WebSocket connections, referer validation, and login redirects, potentially enabling phishing attacks, arbitrary code execution, and unauthorized access to sensitive API responses.

CWE-346

What to do

Debian, PyPI, 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

5Fix 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-6657
Ubuntu 26.04jupyter-serverUnder investigationUBUNTU-CVE-2026-6657
Ubuntu 25.10jupyter-serverWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-6657
Ubuntu 24.04jupyter-serverUnder investigationUBUNTU-CVE-2026-6657
Ubuntu 22.04jupyter-serverUnder investigationUBUNTU-CVE-2026-6657
Debian 14jupyter-serverFix pendingDEBIAN-CVE-2026-6657
Debian 13jupyter-serverFix pendingDEBIAN-CVE-2026-6657
Debian 12jupyter-serverFix pendingDEBIAN-CVE-2026-6657
PyPI libraryjupyter-serverFix pendingPYSEC-2026-3472

What the vendor says

As published in the CVE record by @huntr_ai, 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.