Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. jupyter-server
  4. ›
  5. CVE-2026-6657

CVE-2026-6657: jupyter-server is vulnerable to CORS origin validation bypass when the `allow_origin_pat` configuration is used

June 3, 2026 (updated July 13, 2026)

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.

References

  • github.com/advisories/GHSA-v42x-x7jp-845h
  • huntr.com/bounties/18f642db-3569-43b3-b58d-ff97be4b09d7
  • nvd.nist.gov/vuln/detail/CVE-2026-6657

Code Behaviors & Features

Detect and mitigate CVE-2026-6657 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.12.0 up to 2.17.0

Solution

Unfortunately, there is no solution available yet.

Impact 6.1 MEDIUM

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-346: Origin Validation Error

Source file

pypi/jupyter-server/CVE-2026-6657.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:17:30 +0000.