Permissive Regular Expression Affecting jupyter-server package, versions [1.12.0,2.18.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.2% (10th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-JUPYTERSERVER-17220130
  • published7 Jun 2026
  • disclosed3 Jun 2026
  • creditVinayak Mishra

Introduced: 3 Jun 2026

CVE-2026-6657  (opens in a new tab)
CWE-625  (opens in a new tab)

How to fix?

Upgrade jupyter-server to version 2.18.0 or higher.

Overview

Affected versions of this package are vulnerable to Permissive Regular Expression in the use of re.match() to verify allow_origin_pat values. This allows an attacker to bypass intended CORS restrictions and gain unauthorized access to sensitive API responses. Code execution is possible by convincing an authenticated user to visiting a malicious origin while the non-default CORS regex allowlist is enabled. re.match() is based on prefix matching, so a malicious domain whose lefthand segments are a trusted domain passes.

PoC

https://trusted.example.com/login?next=https://trusted.example.com.evil.com/capture

CVSS Base Scores

version 4.0
version 3.1