@jupyter-notebook/help-extension
Affected
- introduced
7.0.0, fixed7.5.6(semver)
Fixed versions
7.5.6
Fix
- Fixed version
7.5.6npm install @jupyter-notebook/[email protected]
Advisory
Also known as: BIT-jupyter-base-notebook-2026-40171, BIT-jupyter-notebook-2026-40171, BIT-jupyterlab-2026-40171, CVE-2026-40171, PYSEC-2026-2538, PYSEC-2026-2682
Jupyter Notebook Vulnerable to Authentication Token Theft via CommandLinker XSS
Impact
A stored Cross-Site Scripting (XSS) vulnerability in Jupyter Notebook allows attackers to steal authentication tokens from users who open malicious notebook files and interact with elements that the attacker can make look indistinguishable from legitimate controls (single click interaction).
The vulnerability enables complete account takeover through the Jupyter REST API, allowing the attacker to:
Patches
Jupyter Notebook 7.5.6 and JupyterLab 4.5.7 include patches for this vulnerability.
Workarounds
The help extension can be disabled via CLI:
jupyter labextension disable @jupyter-notebook/help-extension
jupyter labextension disable @jupyterlab/help-extension
Hardening
The patched versions include a toggle to disable the command linker functionality altogether, for example via overrides.json:
{
"@jupyterlab/apputils-extension:sanitizer": {
"allowCommandLinker": false
}
}
Resources
Acknowledgments
Reported by Daniel Teixeira - NVIDIA AI Red Team
High Basis: The source's own band: HIGH
7.0.0, fixed 7.5.6 (semver)7.5.6
7.5.6npm install @jupyter-notebook/[email protected]7.0.0, fixed 7.5.6 (ecosystem)7.5.6
7.5.6pip install --upgrade notebook==7.5.60, fixed 4.5.7 (ecosystem)4.5.7
4.5.7pip install --upgrade jupyterlab==4.5.70, fixed 4.5.7 (semver)4.5.7
4.5.7npm install @jupyterlab/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0