jupyter-server is vulnerable to CORS origin validation bypass when the `allow_origin_pat` configuration is used
Moderate severity
GitHub Reviewed
Published
Jun 3, 2026
to the GitHub Advisory Database
•
Updated Jul 13, 2026
Description
Published by the National Vulnerability Database
Jun 3, 2026
Published to the GitHub Advisory Database
Jun 3, 2026
Reviewed
Jul 13, 2026
Last updated
Jul 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_patconfiguration is used. The issue arises from the use ofre.match()for validating theOriginheader, which only anchors at the start of the string. This allows attacker-controlled domains such astrusted.example.com.evil.comto pass validation against patterns intended to matchtrusted.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