JupyterLab: Allowlist/blocklist check in `PyPIExtensionManager.install()` not enforced for direct callers (missing `await`)
A missing await in JupyterLab's PyPIExtensionManager.install() method caused the allowlist/blocklist check to not be enforced for direct callers. This issue affects only custom extensions or downstream integrations that call install() directly with untrusted input and rely on this method to enforce package restrictions. The default JupyterLab HTTP API and UI are not affected as they perform their own awaited checks. The vulnerability is low severity and has been patched in JupyterLab versions 4.6.2 and 4.5.10.
AI Analysis
Technical Summary
The vulnerability arises from a missing await on the coroutine is_install_allowed within the PyPIExtensionManager.install() method in JupyterLab. This omission means that the allowlist/blocklist check intended to restrict package installations is not enforced when install() is called directly by custom extensions or integrations. The stock JupyterLab HTTP API and Extension Manager UI are unaffected because they perform their own awaited allowlist/blocklist checks before invoking install(). The issue impacts deployments that enable the PyPI Extension Manager, disable kernels and terminals, and rely on direct calls to install() with untrusted input. The flaw was fixed in JupyterLab versions 4.6.2 and 4.5.10.
Potential Impact
There is no exposure for standard JupyterLab users because the HTTP API and UI enforce allowlist/blocklist restrictions correctly. The vulnerability only affects custom extensions or downstream integrations that call the install() method directly and rely on it to enforce package restrictions. This could allow installation of unauthorized packages if untrusted input is passed to install(). The overall impact is low.
Mitigation Recommendations
A fix is available in JupyterLab versions 4.6.2 and 4.5.10. Users should update to these or later versions to remediate the issue. No action is required for deployments that only use the HTTP API or Extension Manager UI for extension installation, as those paths already enforce the allowlist/blocklist. Deployments wishing to disable programmatic extension installation entirely can configure the extension manager to read-only mode using the --LabApp.extension_manager=readonly command-line option or the c.LabApp.extension_manager = 'readonly' configuration traitlet.
JupyterLab: Allowlist/blocklist check in `PyPIExtensionManager.install()` not enforced for direct callers (missing `await`)
Description
A missing await in JupyterLab's PyPIExtensionManager.install() method caused the allowlist/blocklist check to not be enforced for direct callers. This issue affects only custom extensions or downstream integrations that call install() directly with untrusted input and rely on this method to enforce package restrictions. The default JupyterLab HTTP API and UI are not affected as they perform their own awaited checks. The vulnerability is low severity and has been patched in JupyterLab versions 4.6.2 and 4.5.10.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises from a missing await on the coroutine is_install_allowed within the PyPIExtensionManager.install() method in JupyterLab. This omission means that the allowlist/blocklist check intended to restrict package installations is not enforced when install() is called directly by custom extensions or integrations. The stock JupyterLab HTTP API and Extension Manager UI are unaffected because they perform their own awaited allowlist/blocklist checks before invoking install(). The issue impacts deployments that enable the PyPI Extension Manager, disable kernels and terminals, and rely on direct calls to install() with untrusted input. The flaw was fixed in JupyterLab versions 4.6.2 and 4.5.10.
Potential Impact
There is no exposure for standard JupyterLab users because the HTTP API and UI enforce allowlist/blocklist restrictions correctly. The vulnerability only affects custom extensions or downstream integrations that call the install() method directly and rely on it to enforce package restrictions. This could allow installation of unauthorized packages if untrusted input is passed to install(). The overall impact is low.
Mitigation Recommendations
A fix is available in JupyterLab versions 4.6.2 and 4.5.10. Users should update to these or later versions to remediate the issue. No action is required for deployments that only use the HTTP API or Extension Manager UI for extension installation, as those paths already enforce the allowlist/blocklist. Deployments wishing to disable programmatic extension installation entirely can configure the extension manager to read-only mode using the --LabApp.extension_manager=readonly command-line option or the c.LabApp.extension_manager = 'readonly' configuration traitlet.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-whvh-wf3x-g77j
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- LOW
- Cvss Version
- 3.1
Threat ID: 6a616bcd9c2644c7f80dbd76
Added to database: 07/23/2026, 01:18:05 UTC
Last enriched: 07/23/2026, 01:23:54 UTC
Last updated: 07/23/2026, 02:04:03 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.