UTC
Medium

JupyterLab: XSS due to lack of sanitization of the action attribute of an html <form>

CVE-2021-32797 · GHSA-4952-p58q-6crx · published 2021-08-23 · updated 2024-11-18

Severity
Medium
CVSS score
7.4
Chance of exploitation (EPSS)
2.7%
Fixed in
3.1.4
What it is

Untrusted notebook can execute code on load. This is a remote code execution, but requires user action to open a notebook.

What to do

Upgrade jupyterlab to 3.1.4 or later, and notebook to 6.4.1 or later.

Patched in the following versions: 3.1.4, 3.0.17, 2.3.2, 2.2.10, 1.2.21.

Affected
PackageRegistryAffectedFixed in
jupyterlabPyPI< 1.2.211.2.21
jupyterlabPyPI>= 2.0.0a0, < 2.2.102.2.10
jupyterlabPyPI>= 2.3.0a0, < 2.3.22.3.2
jupyterlabPyPI>= 3.0.0a0, < 3.0.173.0.17
jupyterlabPyPI>= 3.1.0a0, < 3.1.43.1.4
notebookPyPI< 5.7.115.7.11
notebookPyPI>= 6.0.0, < 6.4.16.4.1

The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.

Sources: GitHub Advisory Database, reviewed and malware advisories (CC BY 4.0, https://github.com/advisories); advisories published by Cursor (https://github.com/cursor/cursor/security/advisories); advisories published by OpenClaw (https://github.com/openclaw/openclaw/security/advisories); advisories published by vLLM (https://github.com/vllm-project/vllm/security/advisories); advisories published by Open WebUI (https://github.com/open-webui/open-webui/security/advisories); advisories published by n8n (https://github.com/n8n-io/n8n/security/advisories); advisories published by Flowise (https://github.com/FlowiseAI/Flowise/security/advisories); advisories published by Langflow (https://github.com/langflow-ai/langflow/security/advisories); advisories published by the MCP Python SDK project (https://github.com/modelcontextprotocol/python-sdk/security/advisories); advisories published by MLflow (https://github.com/mlflow/mlflow/security/advisories); CISA Known Exploited Vulnerabilities catalog (CC0). Data as of 2026-11-22. ShieldMap describes how each problem works and how to fix it; it does not publish exploit code. Report a correction to [email protected].