Repository navigation
Bump jupyter-server to 2.20.0 to fix CVE-2026-44727 - #84
Merged
Merged
Conversation
jupyter-server <= 2.19.0 renders notebook HTML in the nbconvert handlers under the Jupyter origin without a `sandbox` CSP directive. Since nbconvert's HTMLExporter does not sanitize by default, a notebook with an HTML payload in a display_data output yields stored XSS with token access and kernel RCE (GHSA-fcw5-x6j4-ccmp, CVSS v4 9.3). It reaches us transitively via the `interactive` extra (jupyterlab). The nvidia/pexpect marker churn is normalization from a current uv writing the lockfile; the resolution itself is unchanged. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
datasets 4.x no longer ships an `s3` extra, so `datasets[s3]` resolved to plain `datasets` while making uv warn on every lock operation. S3 support in the baselines extra comes from the explicit botocore/aiobotocore requirements, so nothing is lost; the resolution is unchanged. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
stancld
approved these changes
Aug 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes Dependabot alert #236 — the only critical alert currently open on
main.The vulnerability
jupyter-server <= 2.19.0renders notebook HTML in the nbconvert handlers under the Jupyter origin without asandboxCSP directive. Because nbconvert'sHTMLExporterdoes not sanitize by default, a notebook carrying an HTML payload in adisplay_dataoutput yields stored XSS with cookie/token access, full/api/*authority, and kernel RCE.It reaches us transitively via the
interactiveextra (jupyterlab), so it is not installed by the defaultuv syncthat CI runs. Exploitation also requires an authenticated user opening/nbconvert/html/<path>for an attacker-authored notebook — real exposure here is low, but the fix is lock-only.Commits
uvnormalizes away thesys_platformmarkers on ~19 CUDA/pexpectentries. That churn is cosmetic: lock revision stays 3, anduv lock --checkpassed on the pre-existing lockfile, so the resolution itself is unchanged.s3extra fromdatasets—datasets4.x no longer ships ans3extra, sodatasets[s3]resolved to plaindatasetswhile makinguvwarn on every lock operation. S3 support in thebaselinesextra comes from the explicitbotocore/aiobotocorerequirements, so nothing is lost and the resolution is byte-identical apart from the metadata line.Verification
uv lock --checkclean; still 215 packages resolved.uv sync --locked→pytest): 32 passed.interactiveextra installsjupyter-server2.20.0; all server extensions validate OK.NbconvertFileHandler/NbconvertPostHandlernow append"; sandbox allow-scripts"to the CSP, behind a newnbconvert_csp_sandboxsetting (defaultTrue) — an escape hatch if any workflow depends on scripts in nbconvert output.docile_evaluatefor both tasks (KILE AP 1.000, LIR f1 1.000 feeding ground truth back as predictions).pre-commitpassed on both commits.Not addressed
38 other alerts remain open on
main, none critical: pillow (13, high, →12.3.0), mistune (10, medium), jupyterlab (6, high, →4.5.10), aiohttp (3, high), transformers (3, high — needs a major bump past the<5pin), pytest, setuptools, torch. Most are lock-only and could follow in a separate sweep.🤖 Generated with Claude Code