Live threats

All CVEs / Jupyter

CVE-2021-32797Jupyterlab

Critical 9.6 No auth needed

Priority
73
CVSS 3.1
9.6
EPSS
2.7%
probability of exploitation in 30 days · percentile 86
Auth required
No
Published
Aug 9, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

What happens

JupyterLab is a user interface for Project Jupyter which will eventually replace the classic Jupyter Notebook. In affected versions untrusted notebook can execute code on load. In particular JupyterLab doesn’t sanitize the action attribute of html `<form>`. Using this it is possible to trigger the form validation outside of the form itself. This is a remote code execution, but requires user action to open a notebook.

Original NVD text.

What to do

  1. Apply the vendor's security update for Jupyterlab.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI jupyterlab < 1.2.21 1.2.21 pip install "jupyterlab>=1.2.21"
PyPI jupyterlab ≥ 2.0.0a0 < 2.2.10 2.2.10 pip install "jupyterlab>=2.2.10"
PyPI jupyterlab ≥ 2.3.0a0 < 2.3.2 2.3.2 pip install "jupyterlab>=2.3.2"
PyPI jupyterlab ≥ 3.0.0a0 < 3.0.17 3.0.17 pip install "jupyterlab>=3.0.17"
PyPI jupyterlab ≥ 3.1.0a0 < 3.1.4 3.1.4 pip install "jupyterlab>=3.1.4"
PyPI jupyterlab < 1.2.21 1.2.21 pip install "jupyterlab>=1.2.21"
PyPI jupyterlab ≥ 2 < 2.2.10 2.2.10 pip install "jupyterlab>=2.2.10"
PyPI jupyterlab ≥ 2.3 < 2.3.2 2.3.2 pip install "jupyterlab>=2.3.2"
PyPI jupyterlab ≥ 3 < 3.0.17 3.0.17 pip install "jupyterlab>=3.0.17"
PyPI notebook < 5.7.11 5.7.11 pip install "notebook>=5.7.11"
PyPI notebook ≥ 6.0.0 < 6.4.1 6.4.1 pip install "notebook>=6.4.1"
PyPI notebook < 5.7.11 5.7.11 pip install "notebook>=5.7.11"
PyPI notebook ≥ 6.0.0 < 6.4.1 6.4.1 pip install "notebook>=6.4.1"

Per OSV / GitHub Advisories (GHSA-4952-p58q-6crx, PYSEC-2021-130, PYSEC-2026-688). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
jupyterjupyterlab< 1.2.21
jupyterjupyterlab≥ 2.0.0 < 2.2.10
jupyterjupyterlab≥ 2.3.0 < 2.3.2
jupyterjupyterlab≥ 3.0.0 < 3.0.17
jupyterjupyterlab≥ 3.1.0 < 3.1.4

Official sources

References

Links published by the sources. Open them with care.