Uncontrolled Search Path Element Affecting jupyter-core package, versions [,5.8.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (1st 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-JUPYTERCORE-10300774
  • published4 Jun 2025
  • disclosed3 Jun 2025
  • creditTrend Micro

Introduced: 3 Jun 2025

NewCVE-2025-30167  (opens in a new tab)
CWE-427  (opens in a new tab)

How to fix?

Upgrade jupyter-core to version 5.8.0 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Search Path Element due to the shared %PROGRAMDATA% directory being searched for configuration files. An attacker can introduce unintended behavior and affect other users by creating malicious configuration files in the shared directory. This is only exploitable if the system is a shared Windows environment with multiple users and an unprotected %PROGRAMDATA% directory.

Note: The fix version 5.8.0 introduced a regression affecting jupyter-server. It is advised to update to 5.8.1 to avoid the broken functionality.

Workaround

This vulnerability can be mitigated by modifying the permissions on the %PROGRAMDATA% directory so it is not writable by unauthorized users. Alternatively, an administrative user can create the %PROGRAMDATA%\jupyter directory with appropriately restrictive permissions, or set the %PROGRAMDATA% environment variable to a directory with appropriately restrictive permissions.

References

CVSS Base Scores

version 4.0
version 3.1