JupyterLab: Cross-site scripting (XSS) via crafted settings file (`overrides.json`)
JupyterLab versions 3.3.0 through before 4.5.10 and 4.6.0 through before 4.6.2 contain a vulnerability where crafted settings files (overrides.json) can execute code when imported or automatically loaded. This cross-site scripting (XSS) flaw arises because certain notebook display settings are not properly validated, allowing embedded code execution with the user's privileges. Attackers with write access to shared settings directories can plant malicious files applied automatically, while users can also be tricked into importing malicious settings files. The vulnerability enables attackers to read, modify notebooks and files, and execute code on behalf of the user. Official patches are available in versions 4.5.10 and 4.6.2. No workarounds exist, but administrators should restrict write permissions on shared settings directories and establish trusted configuration distribution processes.
AI Analysis
Technical Summary
JupyterLab versions >=3.3.0 <4.5.10 and >=4.6.0 <4.6.2 allow cross-site scripting (XSS) via crafted overrides.json settings files. The vulnerability occurs because notebook display settings imported through the Settings Editor's Import button or loaded automatically from shared directories are not properly validated, enabling embedded code execution within JupyterLab. This can lead to arbitrary code execution with the affected user's privileges, including reading/modifying notebooks and running code on connected kernels. Attackers require either write access to shared settings directories (for automatic application without user action) or user interaction to import a malicious settings file. Patches fixing this issue were released in versions 4.5.10 and 4.6.2. Administrators are advised to restrict write permissions on configuration directories and implement trusted configuration distribution.
Potential Impact
Exploitation of this vulnerability allows an attacker to execute arbitrary code within the context of the affected user in JupyterLab. This includes reading and modifying the user's notebooks and files and running code on the user's behalf through the notebook server and any connected kernels. If an attacker has write access to shared settings directories, they can plant a malicious overrides.json file that is automatically applied without user interaction. Alternatively, a user can be tricked into importing a malicious settings file, leading to code execution. The impact is high due to the ability to run arbitrary code with user privileges and potentially compromise user data and environment.
Mitigation Recommendations
Official patches are available in JupyterLab versions 4.5.10 and 4.6.2; users should upgrade to these or later versions to remediate this vulnerability. There are no known workarounds. Administrators should restrict write permissions on application settings directories and other Jupyter configuration paths on multi-tenant or shared file systems to prevent unauthorized placement of malicious overrides.json files. It is recommended to establish a trusted process for distributing configuration files rather than relying on ad-hoc importing of shared settings files.
JupyterLab: Cross-site scripting (XSS) via crafted settings file (`overrides.json`)
Description
JupyterLab versions 3.3.0 through before 4.5.10 and 4.6.0 through before 4.6.2 contain a vulnerability where crafted settings files (overrides.json) can execute code when imported or automatically loaded. This cross-site scripting (XSS) flaw arises because certain notebook display settings are not properly validated, allowing embedded code execution with the user's privileges. Attackers with write access to shared settings directories can plant malicious files applied automatically, while users can also be tricked into importing malicious settings files. The vulnerability enables attackers to read, modify notebooks and files, and execute code on behalf of the user. Official patches are available in versions 4.5.10 and 4.6.2. No workarounds exist, but administrators should restrict write permissions on shared settings directories and establish trusted configuration distribution processes.
CVSS v4.0
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
JupyterLab versions >=3.3.0 <4.5.10 and >=4.6.0 <4.6.2 allow cross-site scripting (XSS) via crafted overrides.json settings files. The vulnerability occurs because notebook display settings imported through the Settings Editor's Import button or loaded automatically from shared directories are not properly validated, enabling embedded code execution within JupyterLab. This can lead to arbitrary code execution with the affected user's privileges, including reading/modifying notebooks and running code on connected kernels. Attackers require either write access to shared settings directories (for automatic application without user action) or user interaction to import a malicious settings file. Patches fixing this issue were released in versions 4.5.10 and 4.6.2. Administrators are advised to restrict write permissions on configuration directories and implement trusted configuration distribution.
Potential Impact
Exploitation of this vulnerability allows an attacker to execute arbitrary code within the context of the affected user in JupyterLab. This includes reading and modifying the user's notebooks and files and running code on the user's behalf through the notebook server and any connected kernels. If an attacker has write access to shared settings directories, they can plant a malicious overrides.json file that is automatically applied without user interaction. Alternatively, a user can be tricked into importing a malicious settings file, leading to code execution. The impact is high due to the ability to run arbitrary code with user privileges and potentially compromise user data and environment.
Mitigation Recommendations
Official patches are available in JupyterLab versions 4.5.10 and 4.6.2; users should upgrade to these or later versions to remediate this vulnerability. There are no known workarounds. Administrators should restrict write permissions on application settings directories and other Jupyter configuration paths on multi-tenant or shared file systems to prevent unauthorized placement of malicious overrides.json files. It is recommended to establish a trusted process for distributing configuration files rather than relying on ad-hoc importing of shared settings files.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-pppj-hq3g-57pj
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a616bcb9c2644c7f80dbc2c
Added to database: 07/23/2026, 01:18:03 UTC
Last enriched: 07/23/2026, 01:22:57 UTC
Last updated: 07/23/2026, 02:02:09 UTC
Views: 3
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.