Intel

AIKIDO-2025-10582

jupyter-server is vulnerable to Cross-Site Request Forgery (CSRF)

Cross-Site Request Forgery (CSRF) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 25, 2025

62

Medium Risk

This Affects:

PYTHONjupyter-server
0.0.1 - 2.16.0
Fixed in 2.17.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to a CORS bypass that can expose sensitive files through the /files endpoint even when proper origin restrictions (allow_origin_pat) are configured. The issue arises because the XSRF validation logic does not check the request's origin before serving files. As a result, an attacker can exploit a shared-domain XSRF cookie and craft cross-origin requests to bypass CORS protections and access restricted files. The fix adds an explicit origin check in the check_xsrf_cookie flow to ensure that only allowed origins can access /files.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

jupyter-server is vulnerable to Cross-Site Request Forgery (CSRF) in versions 0.0.1 - 2.16.0.

How to fix this

Upgrade the jupyter-server library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform